[Mplayer-cvslog] CVS: main mplayer.c,1.718,1.719
Alex Beregszaszi
alex at mplayerhq.hu
Thu Aug 14 23:30:24 CEST 2003
- Previous message: [Mplayer-cvslog] CVS: homepage/src news.src.en,1.36,1.37
- Next message: [Mplayer-cvslog] CVS: main/help help_mp-nl.h,1.26,1.27 help_mp-pl.h,1.72,1.73 help_mp-pt_BR.h,1.15,1.16 help_mp-tr.h,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv32389
Modified Files:
mplayer.c
Log Message:
there were no checks in MP_CMD_SUB for sh_video, so mplayer immediately segfaulted when such keys were pressed on non-video files
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.718
retrieving revision 1.719
diff -u -r1.718 -r1.719
--- mplayer.c 14 Aug 2003 00:36:25 -0000 1.718
+++ mplayer.c 14 Aug 2003 21:29:39 -0000 1.719
@@ -2519,6 +2519,8 @@
brk_cmd = 1;
} break;
case MP_CMD_SUB_DELAY : {
+#ifdef USE_SUB
+ if (sh_video) {
int abs= cmd->args[1].v.i;
float v = cmd->args[0].v.f;
if(abs)
@@ -2526,20 +2528,29 @@
else
sub_delay += v;
osd_show_sub_delay = 9; // show the subdelay in OSD
+ }
+#endif
} break;
case MP_CMD_SUB_STEP : {
+#ifdef USE_SUB
+ if (sh_video) {
int movement = cmd->args[0].v.i;
step_sub(subdata, sh_video->pts, movement);
osd_show_sub_delay = 9; // show the subdelay in OSD
+ }
+#endif
} break;
- case MP_CMD_OSD :
+ case MP_CMD_OSD : {
+#ifdef USE_OSD
if(sh_video) {
int v = cmd->args[0].v.i;
if(v < 0)
osd_level=(osd_level+1)%(MAX_OSD_LEVEL+1);
else
osd_level= v > MAX_OSD_LEVEL ? MAX_OSD_LEVEL : v;
- } break;
+ }
+#endif
+ } break;
case MP_CMD_OSD_SHOW_TEXT : {
#ifdef USE_OSD
if(osd_level && sh_video){
@@ -2926,6 +2937,8 @@
} break;
case MP_CMD_SUB_POS:
{
+#ifdef USE_SUB
+ if (sh_video) {
int v;
v = cmd->args[0].v.i;
@@ -2934,24 +2947,32 @@
if(sub_pos <0) sub_pos=0;
vo_osd_changed(OSDTYPE_SUBTITLE);
osd_show_sub_pos = 9;
- } break;
+ }
+#endif
+ } break;
case MP_CMD_SUB_ALIGNMENT:
{
+#ifdef USE_SUB
+ if (sh_video) {
if (cmd->nargs >= 1)
sub_alignment = cmd->args[0].v.i;
else
sub_alignment = (sub_alignment+1) % 3;
osd_show_sub_alignment = 9;
vo_osd_changed(OSDTYPE_SUBTITLE);
- break;
- }
+ }
+#endif
+ } break;
case MP_CMD_SUB_VISIBILITY:
{
+#ifdef USE_SUB
+ if (sh_video) {
sub_visibility=1-sub_visibility;
osd_show_sub_visibility = 9; // show state of subtitle visibility in OSD
vo_osd_changed(OSDTYPE_SUBTITLE);
- break;
- }
+ }
+#endif
+ } break;
case MP_CMD_VOBSUB_LANG:
if (vo_vobsub)
{
- Previous message: [Mplayer-cvslog] CVS: homepage/src news.src.en,1.36,1.37
- Next message: [Mplayer-cvslog] CVS: main/help help_mp-nl.h,1.26,1.27 help_mp-pl.h,1.72,1.73 help_mp-pt_BR.h,1.15,1.16 help_mp-tr.h,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list