summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-08-16 11:34:54 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-08-16 11:34:54 +0000
commit7ba5df103c37071d46177de434fdb570df68a650 (patch)
tree23a7198371824043029170d4892c198b77a755ea
parente38e701293f998e0268d8c13d967266cf699a3f3 (diff)
downloadgst-plugins-bad-7ba5df103c37071d46177de434fdb570df68a650.tar.gz
gst-plugins-bad-7ba5df103c37071d46177de434fdb570df68a650.tar.bz2
gst-plugins-bad-7ba5df103c37071d46177de434fdb570df68a650.zip
ext/faad/gstfaad.c: Add some debug info.
Original commit message from CVS: * ext/faad/gstfaad.c: (gst_faad_setcaps), (gst_faad_chanpos_to_gst): Add some debug info.
-rw-r--r--ChangeLog6
-rw-r--r--ext/faad/gstfaad.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 15e02a52..e1ee0b64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-16 Wim Taymans <wim.taymans@gmail.com>
+
+ * ext/faad/gstfaad.c: (gst_faad_setcaps),
+ (gst_faad_chanpos_to_gst):
+ Add some debug info.
+
2007-08-16 Sebastian Dröge <slomo@circular-chaos.org>
* gst/filter/gstlpwsinc.c: (gst_lpwsinc_class_init),
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 3ab62b12..fa2f0038 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -323,7 +323,8 @@ gst_faad_setcaps (GstPad * pad, GstCaps * caps)
&channels) < 0)
goto init_failed;
- GST_DEBUG_OBJECT (faad, "channels=%u, rate=%u", channels, samplerate);
+ GST_DEBUG_OBJECT (faad, "codec_data init: channels=%u, rate=%u", channels,
+ samplerate);
/* not updating these here, so they are updated in the
* chain function, and new caps are created etc. */
@@ -339,6 +340,7 @@ gst_faad_setcaps (GstPad * pad, GstCaps * caps)
} else if ((value = gst_structure_get_value (str, "framed")) &&
g_value_get_boolean (value) == TRUE) {
faad->packetised = TRUE;
+ GST_DEBUG_OBJECT (faad, "we have packetized audio");
} else {
faad->init = FALSE;
}
@@ -445,6 +447,7 @@ gst_faad_chanpos_to_gst (guchar * fpos, guint num)
gboolean unknown_channel = FALSE;
for (n = 0; n < num; n++) {
+ GST_DEBUG ("faad channel %d as %d", n, fpos[n]);
switch (fpos[n]) {
case FRONT_CHANNEL_LEFT:
pos[n] = GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT;
@@ -478,6 +481,7 @@ gst_faad_chanpos_to_gst (guchar * fpos, guint num)
pos[n] = GST_AUDIO_CHANNEL_POSITION_LFE;
break;
default:
+ GST_DEBUG ("unknown channel %d at %d", fpos[n], n);
unknown_channel = TRUE;
break;
}