mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
mad: Make sure to set caps on the srcpad if none are set yet
This commit is contained in:
parent
a2dee80838
commit
a120944340
1 changed files with 2 additions and 1 deletions
|
@ -222,7 +222,8 @@ gst_mad_check_caps_reset (GstMad * mad)
|
|||
* so check this first before doing anything */
|
||||
|
||||
/* only set caps if they weren't already set for this continuous stream */
|
||||
if (mad->channels != nchannels || mad->rate != rate) {
|
||||
if (!gst_pad_has_current_caps (GST_AUDIO_DECODER_SRC_PAD (mad))
|
||||
|| mad->channels != nchannels || mad->rate != rate) {
|
||||
GstCaps *caps;
|
||||
|
||||
if (mad->caps_set) {
|
||||
|
|
Loading…
Reference in a new issue