Pipewireパッケージ(ちょっと変更)
リビジョン | ca069974fcf0be169c04dbf1f4625ceeecbae5f7 (tree) |
---|---|
日時 | 2023-11-16 18:35:33 |
作者 | Wim Taymans <wtaymans@redh...> |
コミッター | Wim Taymans |
bluez5: avoid compiler warning
@@ -556,12 +556,13 @@ static int codec_enum_config(const struct media_codec *codec, uint32_t flags, | ||
556 | 556 | spa_pod_builder_int(b, 8000); |
557 | 557 | spa_pod_builder_int(b, 8000); |
558 | 558 | } |
559 | - if (i == 0) | |
560 | - return -EINVAL; | |
561 | 559 | if (i > 1) |
562 | 560 | choice->body.type = SPA_CHOICE_Enum; |
563 | 561 | spa_pod_builder_pop(b, &f[1]); |
564 | 562 | |
563 | + if (i == 0) | |
564 | + return -EINVAL; | |
565 | + | |
565 | 566 | res = channels_to_positions(conf.channels, position); |
566 | 567 | if (res == 0) |
567 | 568 | return -EINVAL; |