From a120944340b06457e238e278fcf6fe7cdadf36ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 9 Jan 2012 15:15:28 +0100 Subject: [PATCH] mad: Make sure to set caps on the srcpad if none are set yet --- ext/mad/gstmad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index c5a2ccc65a..dae4264066 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -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) {