[Mplayer-cvslog] CVS: main mplayer.c,1.513,1.514

Zoltan Ponekker pontscho at mplayerhq.hu
Wed Jun 5 21:35:56 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv21753

Modified Files:
	mplayer.c 
Log Message:
added panscan support for xmga/xvidix

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.513
retrieving revision 1.514
diff -u -r1.513 -r1.514
--- mplayer.c	4 Jun 2002 20:17:05 -0000	1.513
+++ mplayer.c	5 Jun 2002 19:35:44 -0000	1.514
@@ -2545,22 +2545,24 @@
 	if(video_out && vo_config_count) video_out->control(VOCTRL_FULLSCREEN, 0);
     } break;
     case MP_CMD_PANSCAN : {
-      int abs= cmd->args[1].v.i;
-      float v = cmd->args[0].v.f;
-      float res;
-      if(abs)
-	res = v;
-      else
-	res = vo_panscan+v;
-      vo_panscan = res > 1 ? 1 : res < 0 ? 0 : res;
+      if ( video_out->control( VOCTRL_GET_PANSCAN,NULL ) == VO_TRUE )
+       {
+        int abs= cmd->args[1].v.i;
+        float v = cmd->args[0].v.f;
+        float res;
+        if(abs) res = v;
+          else res = vo_panscan+v;
+        vo_panscan = res > 1 ? 1 : res < 0 ? 0 : res;
+        video_out->control( VOCTRL_SET_PANSCAN,NULL );
 #ifdef USE_OSD
-      if(osd_level){
-	osd_visible=sh_video->fps; // 1 sec
-	vo_osd_progbar_type=OSD_PANSCAN;
-	vo_osd_progbar_value=vo_panscan*256;
-	vo_osd_changed(OSDTYPE_PROGBAR);
-      }
+        if(osd_level){
+	  osd_visible=sh_video->fps; // 1 sec
+	  vo_osd_progbar_type=OSD_PANSCAN;
+	  vo_osd_progbar_value=vo_panscan*256;
+	  vo_osd_changed(OSDTYPE_PROGBAR);
+        }
 #endif
+       }
     } break;
     case MP_CMD_SUB_POS:
     {




More information about the MPlayer-cvslog mailing list