summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpg726depay.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-04-27 09:59:54 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-04-27 10:08:55 +0200
commite213debe8e7e9bba0d01b77489aeb5d075e5f45f (patch)
treedf3bb6a95a0bda17ec33b1d0d1be05f863827b07 /gst/rtp/gstrtpg726depay.c
parentae9cdb2f16517f782406155b3cf06daa9d5561bc (diff)
g726depay: add debug category
Add a debugging category, add some comments and remove _peek_parent().
Diffstat (limited to 'gst/rtp/gstrtpg726depay.c')
-rw-r--r--gst/rtp/gstrtpg726depay.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpg726depay.c b/gst/rtp/gstrtpg726depay.c
index c650c6ba..495292cf 100644
--- a/gst/rtp/gstrtpg726depay.c
+++ b/gst/rtp/gstrtpg726depay.c
@@ -31,6 +31,9 @@
#include "gstrtpg726depay.h"
+GST_DEBUG_CATEGORY_STATIC (rtpg726depay_debug);
+#define GST_CAT_DEFAULT (rtpg726depay_debug)
+
#define DEFAULT_BIT_RATE 32000
#define SAMPLE_RATE 8000
#define LAYOUT_G726 "g726"
@@ -115,8 +118,6 @@ gst_rtp_g726_depay_class_init (GstRtpG726DepayClass * klass)
gobject_class = (GObjectClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->set_property = gst_rtp_g726_depay_set_property;
gobject_class->get_property = gst_rtp_g726_depay_get_property;
@@ -128,6 +129,8 @@ gst_rtp_g726_depay_class_init (GstRtpG726DepayClass * klass)
gstbasertpdepayload_class->process = gst_rtp_g726_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_g726_depay_setcaps;
+ GST_DEBUG_CATEGORY_INIT (rtpg726depay_debug, "rtpg726depay", 0,
+ "G.726 RTP Depayloader");
}
static void
@@ -242,7 +245,8 @@ gst_rtp_g726_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
}
out = GST_BUFFER_DATA (outbuf);
- /* we need to reshuffle the bytes */
+ /* we need to reshuffle the bytes, input is always of the form
+ * A B C D ... with the number of bits depending on the bitrate. */
switch (depay->bitrate) {
case 16000:
{