diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 19:43:26 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 19:43:26 +0000 |
commit | 3050d97eb83cfdfb4d04a51231acba47e6addf1c (patch) | |
tree | 4337d69086ce7d870214e7e5f6a028f8b417521e /src/libxineadec/pcm.c | |
parent | ae2a2a8e08ab3140d5c7ee3a5f33e7db81f76b09 (diff) | |
download | xine-lib-3050d97eb83cfdfb4d04a51231acba47e6addf1c.tar.gz xine-lib-3050d97eb83cfdfb4d04a51231acba47e6addf1c.tar.bz2 |
lprintf cleanup, pass I.
CVS patchset: 5796
CVS date: 2003/11/26 19:43:26
Diffstat (limited to 'src/libxineadec/pcm.c')
-rw-r--r-- | src/libxineadec/pcm.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libxineadec/pcm.c b/src/libxineadec/pcm.c index 554a2e6fc..cdf750f45 100644 --- a/src/libxineadec/pcm.c +++ b/src/libxineadec/pcm.c @@ -30,6 +30,12 @@ #include <sys/types.h> #include <unistd.h> +#define LOG_MODULE "pcm_audio_decoder" +#define LOG_VERBOSE +/* +#define LOG +*/ + #include "xine_internal.h" #include "video_out.h" #include "audio_out.h" @@ -69,17 +75,13 @@ static void pcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {\ int bytes_left = buf->decoder_info[1]; int bits_per_frame = buf->decoder_info[1] / buf->decoder_info[0]; -#ifdef LOG - printf(__FILE__ ": decode_data, flags=0x%08x , mem size: %d, frames: %d...\n", - buf->decoder_flags, buf->decoder_info[1], buf->decoder_info[0]); -#endif + lprintf("decode_data, flags=0x%08x , mem size: %d, frames: %d...\n", + buf->decoder_flags, buf->decoder_info[1], buf->decoder_info[0]); if (_x_stream_info_get(this->stream, XINE_STREAM_INFO_AUDIO_MODE) == 0) { -#ifdef LOG - printf(__FILE__ ": Someone changed the audio mode. Closing device\r"); -#endif - this->stream->audio_out->close(this->stream->audio_out, this->stream); - this->open = 0; + lprintf("Someone changed the audio mode. Closing device\r"); + this->stream->audio_out->close(this->stream->audio_out, this->stream); + this->open = 0; } if (!this->open) @@ -136,9 +138,7 @@ static void pcm_dispose (audio_decoder_t *this_gen) { pcm_decoder_t *this = (pcm_decoder_t *) this_gen; -#ifdef LOG - printf(__FILE__ ": Cleaning up\n"); -#endif + lprintf("Cleaning up\n"); if (this->open) this->stream->audio_out->close (this->stream->audio_out, this->stream); |