summaryrefslogtreecommitdiff
path: root/src/input/input_net.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-12-05 15:54:56 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-12-05 15:54:56 +0000
commit7958ce62d6ae127ee9b8664c8afae5754063389f (patch)
tree658e11edf004b0ae3ac3114ffe8ed5f8604ccefd /src/input/input_net.c
parentb529e4b1f1668c03d3cb35c0c742f301b8c415db (diff)
downloadxine-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/input/input_net.c')
-rw-r--r--src/input/input_net.c8
1 files changed, 5 insertions, 3 deletions
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;