summaryrefslogtreecommitdiffstats
path: root/ext/faad/gstfaad.c
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-05-17 09:15:55 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-05-17 09:15:55 +0000
commitd47f97b0d41a5dd6a32a70da0139a1698c97ebe3 (patch)
tree4f5cea099d2ad14e3af15866c1d1ddda6601dcf9 /ext/faad/gstfaad.c
parent9f82685e96f4e513eefd8adf46a2af412226df47 (diff)
downloadgst-plugins-bad-d47f97b0d41a5dd6a32a70da0139a1698c97ebe3.tar.gz
gst-plugins-bad-d47f97b0d41a5dd6a32a70da0139a1698c97ebe3.tar.bz2
gst-plugins-bad-d47f97b0d41a5dd6a32a70da0139a1698c97ebe3.zip
ext/faad/gstfaad.c: There's no guarantee that caps was set to something, and if it did, the function called to fill t...
Original commit message from CVS: * ext/faad/gstfaad.c: (gst_faad_chain): There's no guarantee that caps was set to something, and if it did, the function called to fill that variable actually sets the caps on the sourcpad, so we call gst_pad_alloc_buffer_and_set_caps() using GST_PAD_CAPS(faad->srcpad).
Diffstat (limited to 'ext/faad/gstfaad.c')
-rw-r--r--ext/faad/gstfaad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 76d4a73c..8d86fc41 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -1261,8 +1261,8 @@ gst_faad_chain (GstPad * pad, GstBuffer * buffer)
/* note: info.samples is total samples, not per channel */
ret =
- gst_pad_alloc_buffer_and_set_caps (faad->srcpad, 0, bufsize, caps,
- &outbuf);
+ gst_pad_alloc_buffer_and_set_caps (faad->srcpad, 0, bufsize,
+ GST_PAD_CAPS (faad->srcpad), &outbuf);
if (ret != GST_FLOW_OK)
goto out;