From 509035fcdb2bc6237bf906aa5fb030dbf33852ba Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 9 Feb 2006 14:14:07 +0000 Subject: gst/rtp/gstrtpamrdepay.c: Added more meaningfull warnings when something goes wrong. Original commit message from CVS: * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_chain): Added more meaningfull warnings when something goes wrong. Clear F bit on outgoing AMR packets. * gst/rtp/gstrtpamrpay.c: (gst_rtp_amr_pay_class_init), (gst_rtp_amr_pay_handle_buffer): Added debugging category Support payloading of multiple AMR frames. * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_depay_data): Added some debugging. --- gst/rtp/gstrtpmp4vpay.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/rtp/gstrtpmp4vpay.c') diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c index 91ef88d0..ce291a3c 100644 --- a/gst/rtp/gstrtpmp4vpay.c +++ b/gst/rtp/gstrtpmp4vpay.c @@ -275,6 +275,7 @@ gst_rtp_mp4v_pay_depay_data (GstRtpMP4VPay * enc, guint8 * data, guint size, return FALSE; code = GST_READ_UINT32_BE (data); + GST_DEBUG_OBJECT (enc, "start code 0x%08x", code); switch (code) { case VOS_STARTCODE: @@ -287,6 +288,8 @@ gst_rtp_mp4v_pay_depay_data (GstRtpMP4VPay * enc, guint8 * data, guint size, /* profile_and_level_indication */ profile = data[4]; + GST_DEBUG_OBJECT (enc, "VOS profile 0x%08x", profile); + if (profile != enc->profile) { newprofile = TRUE; enc->profile = profile; @@ -322,10 +325,12 @@ gst_rtp_mp4v_pay_depay_data (GstRtpMP4VPay * enc, guint8 * data, guint size, break; } case VOP_STARTCODE: + GST_DEBUG_OBJECT (enc, "VOP"); /* VOP startcode, we don't have to flush the packet */ result = FALSE; break; default: + GST_DEBUG_OBJECT (enc, "other startcode"); /* all other startcodes need a flush */ result = TRUE; break; -- cgit