summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorzeeshan.ali@nokia.com <zeeshan.ali@nokia.com>2007-03-23 16:29:22 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:47:56 +0100
commitffe20dee1892bb9f3bcb841be7d602ad6626689d (patch)
tree880b316b9e4ee18b0d15f5c6376c7d2b60be9434 /gst
parent19e3f397512c0563f6279fbf3394fa321789f910 (diff)
downloadgst-plugins-bad-ffe20dee1892bb9f3bcb841be7d602ad6626689d.tar.gz
gst-plugins-bad-ffe20dee1892bb9f3bcb841be7d602ad6626689d.tar.bz2
gst-plugins-bad-ffe20dee1892bb9f3bcb841be7d602ad6626689d.zip
[MOVED FROM GST-P-FARSIGHT] Set caps on the buffer before pushing it
20070323162922-65035-9e4be5449c79c0a459965ee07adb4a8143c4c1d5.gz
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpdtmf/gstrtpdtmfsrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c
index 38e64b0e..5e3a2555 100644
--- a/gst/rtpdtmf/gstrtpdtmfsrc.c
+++ b/gst/rtpdtmf/gstrtpdtmfsrc.c
@@ -608,6 +608,8 @@ gst_rtp_dtmf_src_push_next_rtp_packet (GstRTPDTMFSrc *dtmfsrc)
GST_ERROR_OBJECT (dtmfsrc, "No clock set for element %s", GST_ELEMENT_NAME (dtmfsrc));
}
+ /* Set caps on the buffer before pushing it */
+ gst_buffer_set_caps (buf, GST_PAD_CAPS (dtmfsrc->srcpad));
GST_DEBUG_OBJECT (dtmfsrc,
"pushing buffer on src pad of size %d", GST_BUFFER_SIZE (buf));
ret = gst_pad_push (dtmfsrc->srcpad, buf);