# HG changeset patch # User alex # Date 1016208370 0 # Node ID 69778ca88835d09985e04f012bb370a0266b8d23 # Parent 3d558414320f01ef1e911fe4a0eeb04fc58274a3 mp_msg'ized (for i18n ;) diff -r 3d558414320f -r 69778ca88835 libmpdemux/stream.h --- a/libmpdemux/stream.h Fri Mar 15 15:57:57 2002 +0000 +++ b/libmpdemux/stream.h Fri Mar 15 16:06:10 2002 +0000 @@ -1,6 +1,7 @@ #ifndef __STREAM_H #define __STREAM_H +#include "mp_msg.h" #include #define STREAM_BUFFER_SIZE 2048 @@ -124,7 +125,7 @@ if(!cache_stream_fill_buffer(s)) return total-len; // EOF x=s->buf_len-s->buf_pos; } - if(s->buf_pos>s->buf_len) printf("stream_read: WARNING! s->buf_pos>s->buf_len\n"); + if(s->buf_pos>s->buf_len) mp_msg(MSGT_DEMUX, MSGL_WARN, "stream_read: WARNING! s->buf_pos>s->buf_len\n"); if(x>len) x=len; memcpy(mem,&s->buffer[s->buf_pos],x); s->buf_pos+=x; mem+=x; len-=x; @@ -142,7 +143,7 @@ inline static int stream_seek(stream_t *s,off_t pos){ -// if(verbose>=3) printf("seek to 0x%qX\n",(long long)pos); + mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%qX\n",(long long)pos); if(pospos){ off_t x=pos-(s->pos-s->buf_len);