Mercurial > mplayer.hg
changeset 5086:69778ca88835
mp_msg'ized (for i18n ;)
author | alex |
---|---|
date | Fri, 15 Mar 2002 16:06:10 +0000 |
parents | 3d558414320f |
children | 1d54c3a27093 |
files | libmpdemux/stream.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <inttypes.h> #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(pos<s->pos){ off_t x=pos-(s->pos-s->buf_len);