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.
This commit is contained in:
Wim Taymans 2007-08-16 11:34:54 +00:00
parent e38e701293
commit 7ba5df103c
2 changed files with 11 additions and 1 deletions

View file

@ -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> 2007-08-16 Sebastian Dröge <slomo@circular-chaos.org>
* gst/filter/gstlpwsinc.c: (gst_lpwsinc_class_init), * gst/filter/gstlpwsinc.c: (gst_lpwsinc_class_init),

View file

@ -323,7 +323,8 @@ gst_faad_setcaps (GstPad * pad, GstCaps * caps)
&channels) < 0) &channels) < 0)
goto init_failed; 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 /* not updating these here, so they are updated in the
* chain function, and new caps are created etc. */ * 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")) && } else if ((value = gst_structure_get_value (str, "framed")) &&
g_value_get_boolean (value) == TRUE) { g_value_get_boolean (value) == TRUE) {
faad->packetised = TRUE; faad->packetised = TRUE;
GST_DEBUG_OBJECT (faad, "we have packetized audio");
} else { } else {
faad->init = FALSE; faad->init = FALSE;
} }
@ -445,6 +447,7 @@ gst_faad_chanpos_to_gst (guchar * fpos, guint num)
gboolean unknown_channel = FALSE; gboolean unknown_channel = FALSE;
for (n = 0; n < num; n++) { for (n = 0; n < num; n++) {
GST_DEBUG ("faad channel %d as %d", n, fpos[n]);
switch (fpos[n]) { switch (fpos[n]) {
case FRONT_CHANNEL_LEFT: case FRONT_CHANNEL_LEFT:
pos[n] = GST_AUDIO_CHANNEL_POSITION_FRONT_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; pos[n] = GST_AUDIO_CHANNEL_POSITION_LFE;
break; break;
default: default:
GST_DEBUG ("unknown channel %d at %d", fpos[n], n);
unknown_channel = TRUE; unknown_channel = TRUE;
break; break;
} }