[vdr] mplayer.sh and AID 0

C.Y.M syphir at syphir.sytes.net
Sun Jun 26 18:02:58 CEST 2005


I was just debugging mplayer.sh because I could not get it to play a .vdr file
with an audio track set to "0", then I realized that if the AID is set to 0, the
mplayer plugin does not actually specify 0 for the AID track (it just leaves it
blank).  The following changes to mplayer.sh fix the problem.

while shift; do
  if [ "$1" = "SLAVE" ]; then
    declare SLAVE="$1"
  elif [ "$1" = "AID" ]; then
    declare AID="-aid $2"
    shift
  fi
  if [ "$AID" = "" ]; then
    declare AID="-aid 0"
  fi
done


Regards,
C.



More information about the vdr mailing list