From e4b3dce677f9fc05509d7d678dadc3f703f041b5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 15 Feb 2007 12:26:28 +0000 Subject: [PATCH] gst/rtp/gstrtph264depay.c: Set right caps on output buffers. Original commit message from CVS: * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_process): Set right caps on output buffers. --- ChangeLog | 5 +++++ gst/rtp/gstrtph264depay.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f99bdc9..2444872 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-15 Wim Taymans + + * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_process): + Set right caps on output buffers. + 2007-02-14 Wim Taymans * gst/rtsp/sdpmessage.c: (sdp_parse_line): diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index bea43e0..f52ee81 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -381,8 +381,7 @@ gst_rtp_h264_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) GST_BUFFER_DATA (outbuf) = outdata; GST_BUFFER_MALLOCDATA (outbuf) = outdata; - gst_buffer_set_caps (outbuf, - (GstCaps *) gst_pad_get_pad_template_caps (depayload->srcpad)); + gst_buffer_set_caps (outbuf, GST_PAD_CAPS (depayload->srcpad)); GST_DEBUG_OBJECT (rtph264depay, "output %d bytes", outsize); @@ -405,8 +404,7 @@ gst_rtp_h264_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) outdata[2] = 1; memcpy (&outdata[3], payload, payload_len); - gst_buffer_set_caps (outbuf, - (GstCaps *) gst_pad_get_pad_template_caps (depayload->srcpad)); + gst_buffer_set_caps (outbuf, GST_PAD_CAPS (depayload->srcpad)); return outbuf; } -- 2.7.4