mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Also add some more output format checks to the audio decoder
This commit is contained in:
parent
a870e6a5c3
commit
2f3b2c586f
1 changed files with 5 additions and 0 deletions
|
@ -456,6 +456,11 @@ gst_amc_audio_dec_set_src_caps (GstAmcAudioDec * self, GstAmcFormat * format)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rate == 0 || channels == 0) {
|
||||||
|
GST_ERROR_OBJECT (self, "Rate or channels not set");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Not always present */
|
/* Not always present */
|
||||||
if (gst_amc_format_contains_key (format, "channel-mask"))
|
if (gst_amc_format_contains_key (format, "channel-mask"))
|
||||||
gst_amc_format_get_int (format, "channel-mask", (gint *) & channel_mask);
|
gst_amc_format_get_int (format, "channel-mask", (gint *) & channel_mask);
|
||||||
|
|
Loading…
Reference in a new issue