[MOVED FROM GST-P-FARSIGHT] Set caps on the buffer before pushing it

20070323162922-65035-9e4be5449c79c0a459965ee07adb4a8143c4c1d5.gz
This commit is contained in:
zeeshan.ali@nokia.com 2007-03-23 16:29:22 +00:00 committed by Edward Hervey
parent 19e3f39751
commit ffe20dee18

View file

@ -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);