mad: Make sure to set caps on the srcpad if none are set yet
This commit is contained in:
parent
a2dee80838
commit
a120944340
@ -222,7 +222,8 @@ gst_mad_check_caps_reset (GstMad * mad)
|
|||||||
* so check this first before doing anything */
|
* so check this first before doing anything */
|
||||||
|
|
||||||
/* only set caps if they weren't already set for this continuous stream */
|
/* 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;
|
GstCaps *caps;
|
||||||
|
|
||||||
if (mad->caps_set) {
|
if (mad->caps_set) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user