diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-05-02 12:44:18 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-05-02 12:44:18 +0000 |
commit | 34f916abbd9284552603810e3a0d4abf3e831dbd (patch) | |
tree | 1e50b288f260a6a97f88b42bffae62e3eda6f394 /gst/rtp/gstrtppcmudepay.c | |
parent | ca2bc1840a53ad7eba34177cfb23bc75f244e9b8 (diff) |
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.
Diffstat (limited to 'gst/rtp/gstrtppcmudepay.c')
-rw-r--r-- | gst/rtp/gstrtppcmudepay.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |