diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-12-01 16:07:43 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-12-01 16:07:43 +0000 |
commit | 6184e5e3fdb53ee9a0b00b190a555154bda4b119 (patch) | |
tree | 2491d00811ca3391fb047faa055144a3b8645513 /ext | |
parent | a1c9362f692db081e3f5336a89393ca576d372f4 (diff) | |
download | gst-plugins-bad-6184e5e3fdb53ee9a0b00b190a555154bda4b119.tar.gz gst-plugins-bad-6184e5e3fdb53ee9a0b00b190a555154bda4b119.tar.bz2 gst-plugins-bad-6184e5e3fdb53ee9a0b00b190a555154bda4b119.zip |
ext/faad/gstfaad.c: Oops, remove debug.
Original commit message from CVS:
* ext/faad/gstfaad.c: (gst_faad_srcconnect), (gst_faad_chain):
Oops, remove debug.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/faad/gstfaad.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index 3448f357..aa03a4e6 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -517,19 +517,17 @@ gst_faad_srcconnect (GstPad * pad, const GstCaps * caps) if (fmt != -1) { faacDecConfiguration *conf; - g_print ("Set format %d\n", fmt); conf = faacDecGetCurrentConfiguration (faad->handle); conf->outputFormat = fmt; - g_print ("Trying to conf\n"); if (faacDecSetConfiguration (faad->handle, conf) == 0) return GST_PAD_LINK_REFUSED; - g_print ("Done\n"); + /* FIXME: handle return value, how? */ faad->bps = depth / 8; return GST_PAD_LINK_OK; } - g_print ("Format not recognized\n"); + return GST_PAD_LINK_REFUSED; } @@ -592,9 +590,7 @@ gst_faad_chain (GstPad * pad, GstData * data) input_size = GST_BUFFER_SIZE (buf); info->bytesconsumed = input_size; while (input_size >= FAAD_MIN_STREAMSIZE && info->bytesconsumed > 0) { - g_print ("Decoding %d bytes of data\n", input_size); out = faacDecDecode (faad->handle, info, input_data, input_size); - g_print ("done, rec. %p\n", out); if (info->error) { GST_ELEMENT_ERROR (faad, STREAM, DECODE, (NULL), ("Failed to decode buffer: %s", @@ -626,14 +622,6 @@ gst_faad_chain (GstPad * pad, GstData * data) if (fmt_change) { GstPadLinkReturn ret; - g_print ("Format change\n"); - g_print ("To %ld Hz, %d chans, %d/%d/%d/%d/%d/%d\n", - info->samplerate, info->channels, - info->channel_position[0], - info->channel_position[1], - info->channel_position[2], - info->channel_position[3], - info->channel_position[4], info->channel_position[5]); /* store new negotiation information */ faad->samplerate = info->samplerate; faad->channels = info->channels; @@ -653,11 +641,9 @@ gst_faad_chain (GstPad * pad, GstData * data) /* play decoded data */ if (info->samples > 0) { - g_print ("Playing %ld samples from buf %p\n", info->samples, out); outbuf = gst_buffer_new_and_alloc (info->samples * faad->bps); /* ugh */ memcpy (GST_BUFFER_DATA (outbuf), out, GST_BUFFER_SIZE (outbuf)); - g_print ("done, to %p\n", GST_BUFFER_DATA (outbuf)); GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buf); GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (buf); |