summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpilbcdepay.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-03-29 14:03:21 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-03-29 14:03:21 +0000
commitda3e23d3758e7c5b38b27c4894f1f0845e5231e9 (patch)
treefc46d7425d473f313be940b326dc11d7274d5a57 /gst/rtp/gstrtpilbcdepay.c
parentd26cbc8c663b56976224a433c18817be5a57fe45 (diff)
gst/rtp/: Use more efficient adapter and rtpbuffer methods when possible.
Original commit message from CVS: * gst/rtp/gstrtpL16depay.c: (gst_rtp_L16_depay_process): * gst/rtp/gstrtpgsmdepay.c: (gst_rtp_gsm_depay_process): * gst/rtp/gstrtpilbcdepay.c: (gst_rtp_ilbc_depay_process): * gst/rtp/gstrtpmp2tdepay.c: (gst_rtp_mp2t_depay_process): * gst/rtp/gstrtpmp4gdepay.c: (gst_rtp_mp4g_depay_process): * gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_flush): * gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_setcaps), (gst_rtp_mp4v_depay_process): * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_flush): * gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_process): * gst/rtp/gstrtpmpapay.c: (gst_rtp_mpa_pay_flush): * gst/rtp/gstrtpmpvdepay.c: (gst_rtp_mpv_depay_process): * gst/rtp/gstrtppcmadepay.c: (gst_rtp_pcma_depay_process): * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_process): * gst/rtp/gstrtpsv3vdepay.c: (gst_rtp_sv3v_depay_process): Use more efficient adapter and rtpbuffer methods when possible.
Diffstat (limited to 'gst/rtp/gstrtpilbcdepay.c')
-rw-r--r--gst/rtp/gstrtpilbcdepay.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c
index 057944e2..df21acfd 100644
--- a/gst/rtp/gstrtpilbcdepay.c
+++ b/gst/rtp/gstrtpilbcdepay.c
@@ -169,18 +169,13 @@ static GstBuffer *
gst_rtp_ilbc_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
{
GstBuffer *outbuf = NULL;
- gint payload_len;
- gint header_len;
GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
GST_BUFFER_SIZE (buf),
gst_rtp_buffer_get_marker (buf),
gst_rtp_buffer_get_timestamp (buf), gst_rtp_buffer_get_seq (buf));
- payload_len = gst_rtp_buffer_get_payload_len (buf);
- header_len = gst_rtp_buffer_calc_header_len (0);
-
- outbuf = gst_buffer_create_sub (buf, header_len, payload_len);
+ outbuf = gst_rtp_buffer_get_payload_buffer (buf);
return outbuf;
}