diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-05 15:54:56 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-05 15:54:56 +0000 |
commit | 7958ce62d6ae127ee9b8664c8afae5754063389f (patch) | |
tree | 658e11edf004b0ae3ac3114ffe8ed5f8604ccefd /src/libxinevdec/qtrpza.c | |
parent | b529e4b1f1668c03d3cb35c0c742f301b8c415db (diff) | |
download | xine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.gz xine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.bz2 |
cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued...
CVS patchset: 5844
CVS date: 2003/12/05 15:54:56
Diffstat (limited to 'src/libxinevdec/qtrpza.c')
-rw-r--r-- | src/libxinevdec/qtrpza.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libxinevdec/qtrpza.c b/src/libxinevdec/qtrpza.c index 3299d1e36..6be138f81 100644 --- a/src/libxinevdec/qtrpza.c +++ b/src/libxinevdec/qtrpza.c @@ -21,7 +21,7 @@ * For more information about the RPZA format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: qtrpza.c,v 1.19 2003/11/16 23:33:48 f1rmb Exp $ + * $Id: qtrpza.c,v 1.20 2003/12/05 15:55:01 f1rmb Exp $ */ #include <stdio.h> @@ -126,8 +126,9 @@ static void decode_qtrpza(qtrpza_decoder_t *this) { /* First byte is always 0xe1. Warn if it's different */ if ((unsigned char)this->buf[stream_ptr] != 0xe1) - printf(_("First chunk byte is 0x%02x instead of 0x1e\n"), - (unsigned char)this->buf[stream_ptr]); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "First chunk byte is 0x%02x instead of 0x1e\n", + (unsigned char)this->buf[stream_ptr]); /* Get chunk size, ingnoring first byte */ chunk_size = BE_32(&this->buf[stream_ptr]) & 0x00FFFFFF; @@ -135,7 +136,8 @@ static void decode_qtrpza(qtrpza_decoder_t *this) { /* If length mismatch use size from MOV file and try to decode anyway */ if (chunk_size != this->size) - printf(_("MOV chunk size != encoded chunk size; using MOV chunk size\n")); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "MOV chunk size != encoded chunk size; using MOV chunk size\n"); chunk_size = this->size; @@ -268,9 +270,9 @@ static void decode_qtrpza(qtrpza_decoder_t *this) { /* Unknown opcode */ default: - printf(_("Unknown opcode %d in rpza chunk." - " Skip remaining %d bytes of chunk data.\n"), opcode, - chunk_size - stream_ptr); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "Unknown opcode %d in rpza chunk.Skip remaining %d bytes of chunk data.\n", + opcode, chunk_size - stream_ptr); return; } /* Opcode switch */ |