diff libmpdemux/stream.c @ 17932:3fe3b2b3a6ce

Convert all if(verbose>X) to mp_msg_test calls.
author diego
date Fri, 24 Mar 2006 08:12:03 +0000
parents ab0a3e3d32ed
children f72bc5754209
line wrap: on
line diff
--- a/libmpdemux/stream.c	Fri Mar 24 02:31:29 2006 +0000
+++ b/libmpdemux/stream.c	Fri Mar 24 08:12:03 2006 +0000
@@ -32,7 +32,6 @@
 #include "m_struct.h"
 
 
-extern int verbose; // defined in mplayer.c
 void cache_uninit(stream_t *s); // defined in cache2.c
 
 //#include "vcd_read_bincue.h"
@@ -246,7 +245,7 @@
 int stream_seek_long(stream_t *s,off_t pos){
 off_t newpos=0;
 
-//  if(verbose>=3) printf("seek_long to 0x%X\n",(unsigned int)pos);
+//  if( mp_msg_test(MSGT_STREAM,MSGL_DBG3) ) printf("seek_long to 0x%X\n",(unsigned int)pos);
 
   s->buf_pos=s->buf_len=0;
 
@@ -271,7 +270,7 @@
     break;
   }
 
-if(verbose>=3){
+if( mp_msg_test(MSGT_STREAM,MSGL_DBG3) ){
   printf("s->pos=%"PRIX64"  newpos=%"PRIX64"  new_bufpos=%"PRIX64"  buflen=%X  \n",
     (int64_t)s->pos,(int64_t)newpos,(int64_t)pos,s->buf_len);
 }