changeset 487:5dd417ed3a21

vo_debug printfs...
author arpi_esp
date Tue, 17 Apr 2001 18:37:15 +0000
parents 4f52aa06f0fc
children 108be5ee3b1a
files mplayer.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Tue Apr 17 17:43:40 2001 +0000
+++ b/mplayer.c	Tue Apr 17 18:37:15 2001 +0000
@@ -945,8 +945,11 @@
 printf("Found video codec: [%s] drv:%d (%s)\n",sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
 
 for(i=0;i<CODECS_MAX_OUTFMT;i++){
+    int ret;
     out_fmt=sh_video->codec->outfmt[i];
-    if(video_out->query_format(out_fmt)) break;
+    ret=video_out->query_format(out_fmt);
+    if(verbose) printf("vo_debug: query(0x%X) returned 0x%X\n",out_fmt,ret);
+    if(ret) break;
 }
 if(i>=CODECS_MAX_OUTFMT){
     printf("Sorry, selected video_out device is incompatible with this codec.\n");
@@ -954,6 +957,8 @@
 }
 sh_video->outfmtidx=i;
 
+if(verbose) printf("vo_debug1: out_fmt=0x%08X\n",out_fmt);
+
 switch(sh_video->codec->driver){
  case 2: {
    if(!init_video_codec(out_fmt)) exit(1);
@@ -1025,6 +1030,8 @@
  }
 }
 
+if(verbose) printf("vo_debug2: out_fmt=0x%08X\n",out_fmt);
+
 // ================== Init output files for encoding ===============
    if(encode_name){
      // encode file!!!
@@ -1109,6 +1116,8 @@
                       fullscreen|(vidmode<<1)|(softzoom<<2),
                       title,out_fmt);
 
+if(verbose) printf("vo_debug3: out_fmt=0x%08X\n",out_fmt);
+
    if(video_out->init(sh_video->disp_w,sh_video->disp_h,
                       screen_size_x,screen_size_y,
                       fullscreen|(vidmode<<1)|(softzoom<<2),