From ffe20dee1892bb9f3bcb841be7d602ad6626689d Mon Sep 17 00:00:00 2001 From: "zeeshan.ali@nokia.com" Date: Fri, 23 Mar 2007 16:29:22 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] Set caps on the buffer before pushing it 20070323162922-65035-9e4be5449c79c0a459965ee07adb4a8143c4c1d5.gz --- gst/rtpdtmf/gstrtpdtmfsrc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gst') 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); -- cgit v1.2.1