[MPlayer-dev-eng] [PATCH] Forced subtitles[corrected]
Diego Biurrun
diego at biurrun.de
Tue Oct 14 16:25:36 CEST 2003
Diego Biurrun writes:
> Alex Beregszaszi writes:
> > > Any other suggestions?
> > Never ever use underscores in config options!
> Patch attached.
Here is a better one, I had missed the monitor_* options.
OK to commit?
Diego
Index: cfg-common.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-common.h,v
retrieving revision 1.113
diff -u -r1.113 cfg-common.h
--- cfg-common.h 14 Oct 2003 10:15:35 -0000 1.113
+++ cfg-common.h 14 Oct 2003 14:18:55 -0000
@@ -200,13 +200,13 @@
#ifdef USE_SUB
{"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
#ifdef USE_FRIBIDI
- {"fribidi_charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
- {"flip_hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {"noflip_hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
+ {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
#else
- {"fribidi_charset", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
- {"flip_hebrew", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
- {"noflip_hebrew", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
+ {"fribidi-charset", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
+ {"flip-hebrew", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
+ {"noflip-hebrew", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
#endif
#ifdef USE_ICONV
{"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.206
diff -u -r1.206 cfg-mplayer.h
--- cfg-mplayer.h 3 Oct 2003 18:13:15 -0000 1.206
+++ cfg-mplayer.h 14 Oct 2003 14:18:55 -0000
@@ -230,9 +230,9 @@
#endif
#if defined(HAVE_FBDEV)||defined(HAVE_VESA)
- {"monitor_hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
- {"monitor_vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
- {"monitor_dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
+ {"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
+ {"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
+ {"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
#endif
#ifdef HAVE_FBDEV
@@ -288,8 +288,8 @@
{"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL},
{"rootwin", &WinID, CONF_TYPE_FLAG, 0, -1, 0, NULL},
{"icelayer", "Use -fstype layer:<number> instead. -icelayer was obsoleted\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
- {"stop_xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {"nostop_xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ {"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"nostop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"keepaspect", &vo_x11_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nokeepaspect", &vo_x11_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
Index: DOCS/en/mplayer.1
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/en/mplayer.1,v
retrieving revision 1.451
diff -u -r1.451 mplayer.1
--- DOCS/en/mplayer.1 14 Oct 2003 13:55:25 -0000 1.451
+++ DOCS/en/mplayer.1 14 Oct 2003 14:18:57 -0000
@@ -1099,7 +1104,7 @@
.PD 1
.
.TP
-.B \-flip_hebrew
+.B \-flip-hebrew
Turns on flipping subtitles using FriBiDi.
.TP
.B \-font <path\ to\ font.desc\ file>
@@ -1127,7 +1132,7 @@
Display only "forced subtitles" for the DVD subtitle stream selected by e.g.
\-slang.
.TP
-.B \-fribidi_charset <charset\ name>
+.B \-fribidi-charset <charset\ name>
Specifies the charset that will be passed to FriBiDi when decoding a non-UTF8
subtitles. Default is "ISO8859-8".
.TP
@@ -1747,12 +1752,12 @@
.PD 1
.
.TP
-.B \-monitor_dotclock <dotclock\ (or\ pixelclock) range> (fbdev and vesa only)
+.B \-monitor-dotclock <dotclock\ (or\ pixelclock) range> (fbdev and vesa only)
Look into etc/\:example.conf for further information and in DOCS/\:video.html.
.TP
-.B \-monitor_hfreq <horizontal frequency range> (fbdev and vesa only)
+.B \-monitor-hfreq <horizontal frequency range> (fbdev and vesa only)
.TP
-.B \-monitor_vfreq <vertical frequency range> (fbdev and vesa only)
+.B \-monitor-vfreq <vertical frequency range> (fbdev and vesa only)
.TP
.B \-monitoraspect <ratio>
Set aspect ratio of your monitor or TV screen.
@@ -1802,7 +1807,7 @@
(fbdev/\:x11 and/\:or TVout) this is where you can specify the horizontal and
vertical resolution.
.TP
-.B \-stop_xscreensaver
+.B \-stop-xscreensaver
Turns off xscreensaver at startup and turns it on again on exit.
.TP
.B \-vm \ \ \
More information about the MPlayer-dev-eng
mailing list