From 7958ce62d6ae127ee9b8664c8afae5754063389f Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 5 Dec 2003 15:54:56 +0000 Subject: 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 --- src/input/input_net.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/input/input_net.c') diff --git a/src/input/input_net.c b/src/input/input_net.c index 666a33a1a..16640ce35 100644 --- a/src/input/input_net.c +++ b/src/input/input_net.c @@ -20,7 +20,7 @@ * Read from a tcp network stream over a lan (put a tweaked mp1e encoder the * other end and you can watch tv anywhere in the house ..) * - * $Id: input_net.c,v 1.55 2003/11/26 19:43:31 f1rmb Exp $ + * $Id: input_net.c,v 1.56 2003/12/05 15:54:58 f1rmb Exp $ * * how to set up mp1e for use with this plugin: * @@ -272,7 +272,8 @@ static off_t net_plugin_read (input_plugin_t *this_gen, if( (len-total) > 0 ) { n = _x_read_abort (this->stream, this->fh, &buf[total], len-total); - printf ("input_net: got %lld bytes (%lld/%lld bytes read)\n", n,total,len); + xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, + "input_net: got %lld bytes (%lld/%lld bytes read)\n", n,total,len); if (n < 0) { _x_message(this->stream, XINE_MSG_READ_ERROR, this->host_port, NULL); @@ -348,7 +349,8 @@ static off_t net_plugin_seek (input_plugin_t *this_gen, off_t offset, int origin if( this->curpos <= this->preview_size ) this->curpos = offset; else - printf ("input_net: cannot seek back! (%lld > %lld)\n", this->curpos, offset); + xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, + "input_net: cannot seek back! (%lld > %lld)\n", this->curpos, offset); } else { offset -= this->curpos; -- cgit v1.2.3