[Mplayer-cvslog] CVS: main mplayer.c,1.513,1.514
Zoltan Ponekker
pontscho at mplayerhq.hu
Wed Jun 5 21:35:56 CEST 2002
- Previous message: [Mplayer-cvslog] Let's be friends
- Next message: [Mplayer-cvslog] CVS: main/libvo aspect.c,1.8,1.9 aspect.h,1.3,1.4 mga_common.c,1.33,1.34 video_out.h,1.34,1.35 vo_xmga.c,1.70,1.71 vo_xv.c,1.93,1.94 vo_xvidix.c,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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:
{
- Previous message: [Mplayer-cvslog] Let's be friends
- Next message: [Mplayer-cvslog] CVS: main/libvo aspect.c,1.8,1.9 aspect.h,1.3,1.4 mga_common.c,1.33,1.34 video_out.h,1.34,1.35 vo_xmga.c,1.70,1.71 vo_xv.c,1.93,1.94 vo_xvidix.c,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list