mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Only try to get the channel-mask if it is set
This commit is contained in:
parent
afbc23ceed
commit
b07cd212ac
1 changed files with 2 additions and 1 deletions
|
@ -444,7 +444,8 @@ gst_amc_audio_dec_set_src_caps (GstAmcAudioDec * self, GstAmcFormat * format)
|
|||
}
|
||||
|
||||
/* Not always present */
|
||||
gst_amc_format_get_int (format, "channel-mask", (gint *) & channel_mask);
|
||||
if (gst_amc_format_contains_key (format, "channel-mask"))
|
||||
gst_amc_format_get_int (format, "channel-mask", (gint *) & channel_mask);
|
||||
|
||||
if (self->positions)
|
||||
g_free (self->positions);
|
||||
|
|
Loading…
Reference in a new issue