[MPlayer-cvslog] r24867 - trunk/libmpdemux/video.c

nicodvb subversion at mplayerhq.hu
Sat Oct 27 14:50:21 CEST 2007


Author: nicodvb
Date: Sat Oct 27 14:50:21 2007
New Revision: 24867

Log:
in process_userdata() move debugging messages from stdout to stderr

Modified:
   trunk/libmpdemux/video.c

Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c	(original)
+++ trunk/libmpdemux/video.c	Sat Oct 27 14:50:21 2007
@@ -402,12 +402,12 @@ static void process_userdata(unsigned ch
        return;
     }
     if(verbose<2) return;
-    printf( "user_data: len=%3d  %02X %02X %02X %02X '",
+    fprintf(stderr, "user_data: len=%3d  %02X %02X %02X %02X '",
       len, buf[0], buf[1], buf[2], buf[3]);
     for(i=0;i<len;i++)
-//    if(buf[i]>=32 && buf[i]<127) putchar(buf[i]);
-      if(buf[i]&0x60) putchar(buf[i]&0x7F);
-    printf("'\n");
+//    if(buf[i]>=32 && buf[i]<127) fputc(buf[i], stderr);
+      if(buf[i]&0x60) fputc(buf[i]&0x7F, stderr);
+    fprintf(stderr, "'\n");
 }
 
 int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char** start,int force_fps){



More information about the MPlayer-cvslog mailing list