rtpLXXdepay: Set the UNPOSITIONED flag on the audio-info when configuring an unpositioned layout

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/688
This commit is contained in:
Sebastian Dröge 2020-01-16 09:30:39 +02:00 committed by GStreamer Merge Bot
parent 586fc57e55
commit db69f02dd8
3 changed files with 3 additions and 0 deletions

View file

@ -209,6 +209,7 @@ gst_rtp_L16_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
GST_STR_NULL (channel_order), channels)); GST_STR_NULL (channel_order), channels));
/* create default NONE layout */ /* create default NONE layout */
gst_rtp_channels_create_default (channels, info->position); gst_rtp_channels_create_default (channels, info->position);
info->flags |= GST_AUDIO_FLAG_UNPOSITIONED;
} }
srccaps = gst_audio_info_to_caps (info); srccaps = gst_audio_info_to_caps (info);

View file

@ -187,6 +187,7 @@ gst_rtp_L24_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
GST_STR_NULL (channel_order), channels)); GST_STR_NULL (channel_order), channels));
/* create default NONE layout */ /* create default NONE layout */
gst_rtp_channels_create_default (channels, info->position); gst_rtp_channels_create_default (channels, info->position);
info->flags |= GST_AUDIO_FLAG_UNPOSITIONED;
} }
srccaps = gst_audio_info_to_caps (info); srccaps = gst_audio_info_to_caps (info);

View file

@ -186,6 +186,7 @@ gst_rtp_L8_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
GST_STR_NULL (channel_order), channels)); GST_STR_NULL (channel_order), channels));
/* create default NONE layout */ /* create default NONE layout */
gst_rtp_channels_create_default (channels, info->position); gst_rtp_channels_create_default (channels, info->position);
info->flags |= GST_AUDIO_FLAG_UNPOSITIONED;
} }
srccaps = gst_audio_info_to_caps (info); srccaps = gst_audio_info_to_caps (info);