[Mplayer-cvslog] CVS: main/libmpdemux stream.h,1.33,1.34

Alex Beregszaszi alex at mplayer.dev.hu
Fri Mar 15 17:06:13 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv17635

Modified Files:
	stream.h 
Log Message:
mp_msg'ized (for i18n ;)

Index: stream.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- stream.h	23 Feb 2002 21:22:55 -0000	1.33
+++ stream.h	15 Mar 2002 16:06:10 -0000	1.34
@@ -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);




More information about the MPlayer-cvslog mailing list