#!/bin/sh
# mplayer wrapper script
MPLAYER=mplayer1
GMPLAYER=mplayer3

if [ -f /home/root/Choices/pdaxii13.conf ] && [ "`grep GMPLAYER $HOME/Choices/pdaxii13.conf|grep true`" != "" ]; then
   if [ "`which $GMPLAYER`" != "" ]; then
     $GMPLAYER -nortc -framedrop -dr -cache 2048 -ao sdl -vo x11 -lavdopts idct=16 "$*"
   else
     aterm -iconic -e gmplayer -nortc -framedrop -dr -cache 2048 -ao sdl -vo x11 -lavdopts idct=16 "$*"
   fi
else 
  if [ "$1" = "" ]; then
    $MPLAYER
  else
    aterm -e $MPLAYER -nortc "$*"
    xrandr -o normal 
  fi   
fi
