[Mplayer-cvslog] CVS: main/input input.c,1.85,1.86 input.h,1.38,1.39

Attila Kinali CVS attila at mplayerhq.hu
Sun Sep 21 16:21:46 CEST 2003


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

Modified Files:
	input.c input.h 
Log Message:
Forced subtitles patch by Arne Driescher <driescher at mpi-magdeburg.mpg.de>

 For a given subtitle language you can now chose to display
  only the forced subtitles. Defaut is set to "show all subtitles"
  so that current mplayer behaviour is not changed.

For DVD:
  Use -forced_subs_only additionally to e.g. -slang en
  if you are only interested in the forced subtitles.

For VobSub:
  The idx file is now parsed for the "forced subs: ON/OFF" tag
   and used according to its settings.

Key:
  You can toggle the display of forced subtitles by pressing
   "F"  (upper case letter).



Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- input.c	19 Sep 2003 20:44:30 -0000	1.85
+++ input.c	21 Sep 2003 14:21:43 -0000	1.86
@@ -93,6 +93,7 @@
   { MP_CMD_TV_SET_HUE, "tv_set_hue", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
   { MP_CMD_TV_SET_SATURATION, "tv_set_saturation", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
 #endif
+  { MP_CMD_SUB_FORCED_ONLY, "forced_subs_only",  0, { {-1,{0}} } },
 #ifdef HAS_DVBIN_SUPPORT
   { MP_CMD_DVB_SET_CHANNEL, "dvb_set_channel", 1, { { MP_CMD_ARG_INT, {0}}, {-1,{0}}  }},
 #endif
@@ -300,6 +301,7 @@
   { { 'a', 0 }, "sub_alignment" },
   { { 'v', 0 }, "sub_visibility" },
   { { 'j', 0 }, "vobsub_lang" },
+  { { 'F', 0 }, "forced_subs_only" },
 #ifdef USE_EDL
   { { 'i', 0 }, "edl_mark" },
 #endif

Index: input.h
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- input.h	19 Sep 2003 20:44:30 -0000	1.38
+++ input.h	21 Sep 2003 14:21:43 -0000	1.39
@@ -51,6 +51,7 @@
 #define MP_CMD_TV_SET_SATURATION 47
 #define MP_CMD_GET_VO_FULLSCREEN 48
 #define MP_CMD_GET_SUB_VISIBILITY 49
+#define MP_CMD_SUB_FORCED_ONLY 50
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001



More information about the MPlayer-cvslog mailing list