From 34f916abbd9284552603810e3a0d4abf3e831dbd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 2 May 2008 12:44:18 +0000 Subject: gst/rtp/gstrtph263pdepay.c: Add some more debug info and guard against small payloads. Original commit message from CVS: * gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_process): Add some more debug info and guard against small payloads. * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_process): Set duration on outgoing buffers because we can. --- gst/rtp/gstrtppcmudepay.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/rtp/gstrtppcmudepay.c') diff --git a/gst/rtp/gstrtppcmudepay.c b/gst/rtp/gstrtppcmudepay.c index b472e89d..2f0ec550 100644 --- a/gst/rtp/gstrtppcmudepay.c +++ b/gst/rtp/gstrtppcmudepay.c @@ -141,6 +141,7 @@ gst_rtp_pcmu_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) { GstCaps *srccaps; GstBuffer *outbuf = NULL; + guint len; GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d", GST_BUFFER_SIZE (buf), @@ -156,8 +157,12 @@ gst_rtp_pcmu_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) gst_caps_unref (srccaps); } + len = gst_rtp_buffer_get_payload_len (buf); outbuf = gst_rtp_buffer_get_payload_buffer (buf); + GST_BUFFER_DURATION (outbuf) = + gst_util_uint64_scale_int (len, GST_SECOND, depayload->clock_rate); + return outbuf; } -- cgit