projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2dee80
)
mad: Make sure to set caps on the srcpad if none are set yet
author
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Mon, 9 Jan 2012 14:15:28 +0000
(15:15 +0100)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Mon, 9 Jan 2012 14:15:28 +0000
(15:15 +0100)
ext/mad/gstmad.c
patch
|
blob
|
history
diff --git
a/ext/mad/gstmad.c
b/ext/mad/gstmad.c
index
c5a2ccc
..
dae4264
100644
(file)
--- 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) {