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/libvorbis/xine_decoder.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/libvorbis/xine_decoder.c')
-rw-r--r-- | src/libvorbis/xine_decoder.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/libvorbis/xine_decoder.c b/src/libvorbis/xine_decoder.c index 13c49d3a8..8258bf2bc 100644 --- a/src/libvorbis/xine_decoder.c +++ b/src/libvorbis/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.30 2003/11/16 23:33:47 f1rmb Exp $ + * $Id: xine_decoder.c,v 1.31 2003/11/26 19:43:36 f1rmb Exp $ * * (ogg/)vorbis audio decoder plugin (libvorbis wrapper) for xine */ @@ -29,6 +29,12 @@ #include <stdlib.h> #include <string.h> +#define LOG_MODULE "vorbis_decoder" +#define LOG_VERBOSE +/* +#define LOG +*/ + #include "xine_internal.h" #include "audio_out.h" #include "buffer.h" @@ -38,10 +44,6 @@ #define MAX_NUM_SAMPLES 4096 -/* -#define LOG -*/ - typedef struct { audio_decoder_class_t decoder_class; } vorbis_class_t; @@ -107,19 +109,15 @@ static void get_metadata (vorbis_decoder_t *this) { char *comment = *ptr; int i; -#ifdef LOG - printf("libvorbis: %s\n", comment); -#endif + lprintf("%s\n", comment); for (i = 0; vorbis_comment_keys[i].key != NULL; i++) { if ( !strncasecmp (vorbis_comment_keys[i].key, comment, strlen(vorbis_comment_keys[i].key)) ) { -#ifdef LOG - printf ("libvorbis: known metadata %d %d\n", - i, vorbis_comment_keys[i].xine_metainfo_index); -#endif + lprintf ("known metadata %d %d\n", + i, vorbis_comment_keys[i].xine_metainfo_index); _x_meta_info_set(this->stream, vorbis_comment_keys[i].xine_metainfo_index, comment + strlen(vorbis_comment_keys[i].key)); @@ -137,15 +135,12 @@ static void vorbis_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { vorbis_decoder_t *this = (vorbis_decoder_t *) this_gen; ogg_packet *op = (ogg_packet *) buf->content; -#ifdef LOG - printf ("libvorbis: decode buf=%08x content=%08x op=%08x packet=%08x flags=%08x\n", - buf, buf->content, op, op->packet, buf->decoder_flags); -#endif + lprintf ("decode buf=%08x content=%08x op=%08x packet=%08x flags=%08x\n", + buf, buf->content, op, op->packet, buf->decoder_flags); if (buf->decoder_flags & BUF_FLAG_PREVIEW) { -#ifdef LOG - printf ("libvorbis: preview buffer, %d headers to go\n", this->header_count); -#endif + lprintf ("preview buffer, %d headers to go\n", this->header_count); + if (this->header_count) { if(vorbis_synthesis_headerin(&this->vi,&this->vc,op)<0){ |