Mercurial > mplayer.hg
view version.sh @ 10917:d45870f67728
Forced subtitles patch by Arne Driescher <driescher@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).
author | attila |
---|---|
date | Sun, 21 Sep 2003 14:21:43 +0000 |
parents | b522f0f85387 |
children | e209ca6a0b3e |
line wrap: on
line source
#!/bin/sh OS=`uname -s` case "$OS" in Linux) last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` ;; BSD/OS) LS=`ls -lT CVS/Entries` month=`echo $LS | awk -F" " '{print $6}'` day=`echo $LS | awk -F" " '{print $7}'` hms=`echo $LS | awk -F" " '{print $8}'` hour=`echo $hms | awk -F":" '{print $1}'` minute=`echo $hms | awk -F":" '{print $2}'` year=`echo $LS | awk -F" " '{print $9}'` last_cvs_update="${year}${month}${day}-${hour}:${minute}" ;; Darwin) # darwin's date has different meaning for -r last_cvs_update=`date +%y%m%d-%H:%M` ;; *) last_cvs_update=`date +%y%m%d-%H:%M` ;; esac extra="" if test "$1" ; then extra="-$1" fi echo "#define VERSION \"dev-CVS-${last_cvs_update}${extra}\"" >version.h