summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-12 17:33:34 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-12 17:33:34 +0000
commit351db40c64b02835f48bb299295c49deac775997 (patch)
tree62104dc929dcc94e5d360df9df8d4c806be3d775
parent8c790a575f88c44c8ef9ee2ade5a35bca60ca6fa (diff)
downloadxine-lib-351db40c64b02835f48bb299295c49deac775997.tar.gz
xine-lib-351db40c64b02835f48bb299295c49deac775997.tar.bz2
small libmad debug output cleanup
CVS patchset: 624 CVS date: 2001/09/12 17:33:34
-rw-r--r--src/libmad/xine_decoder.c14
-rw-r--r--src/xine-engine/audio_decoder.c7
2 files changed, 13 insertions, 8 deletions
diff --git a/src/libmad/xine_decoder.c b/src/libmad/xine_decoder.c
index 3e5ee3cf9..ed537fc30 100644
--- a/src/libmad/xine_decoder.c
+++ b/src/libmad/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.6 2001/09/11 14:10:04 jcdutton Exp $
+ * $Id: xine_decoder.c,v 1.7 2001/09/12 17:33:34 guenter Exp $
*
* stuff needed to turn libmad into a xine decoder plugin
*/
@@ -72,6 +72,8 @@ static void mad_init (audio_decoder_t *this_gen, ao_instance_t *audio_out) {
mad_stream_init (&this->stream);
mad_frame_init (&this->frame);
+ /* printf ("libmad: init\n"); */
+
}
/* utility to scale and round samples to 16 bits */
@@ -111,8 +113,9 @@ static void mad_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
mad_decoder_t *this = (mad_decoder_t *) this_gen;
- /* printf ("libmad: decode data\n");
- fflush (stdout); */
+ /*
+ printf ("libmad: decode data, decoder_info[0]: %d\n", buf->decoder_info[0]);
+ */
if (buf->size>(INPUT_BUF_SIZE-this->bytes_in_buffer)) {
printf ("libmad: ALERT input buffer too small (%d bytes, %d avail)!\n",
@@ -127,9 +130,8 @@ static void mad_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->bytes_in_buffer += buf->size;
/*
- printf ("libmad: decode data - doing it\n");
- fflush (stdout);
- */
+ printf ("libmad: decode data - doing it\n");
+ */
mad_stream_buffer (&this->stream, this->buffer,
this->bytes_in_buffer);
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c
index 79f79b17b..eeb542619 100644
--- a/src/xine-engine/audio_decoder.c
+++ b/src/xine-engine/audio_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_decoder.c,v 1.37 2001/09/11 09:03:51 jkeil Exp $
+ * $Id: audio_decoder.c,v 1.38 2001/09/12 17:33:34 guenter Exp $
*
*
* functions that implement audio decoding
@@ -193,9 +193,12 @@ void *audio_decoder_loop (void *this_gen) {
}
- /* printf ("audio_loop: sending data to decoder\n"); */
+ /* printf ("audio_loop: sending data to decoder\n"); */
decoder->decode_data (decoder, buf);
+
+ /* printf ("audio_loop: decoding is done\n"); */
+
}
}
} else