mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
pod-builder: move some code around to help gcc 13
Make sure to pop the frame before returning errors to stop gcc13 from complaining with -Wdangling-pointer Fixes #3171
This commit is contained in:
parent
83d2e85f49
commit
0333ddff45
6 changed files with 22 additions and 19 deletions
|
|
@ -184,12 +184,13 @@ static int codec_enum_config(const struct media_codec *codec, uint32_t flags,
|
|||
spa_pod_builder_int(b, 96000);
|
||||
spa_pod_builder_int(b, 96000);
|
||||
}
|
||||
if (i == 0)
|
||||
return -EINVAL;
|
||||
if (i > 1)
|
||||
choice->body.type = SPA_CHOICE_Enum;
|
||||
spa_pod_builder_pop(b, &f[1]);
|
||||
|
||||
if (i == 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (conf.channel_mode & LDACBT_CHANNEL_MODE_MONO &&
|
||||
conf.channel_mode & (LDACBT_CHANNEL_MODE_STEREO |
|
||||
LDACBT_CHANNEL_MODE_DUAL_CHANNEL)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue