Mercurial > mplayer.hg
view TOOLS/mpconsole.sh @ 34113:b3e209516ae0
Allow GUI to use filename related config.
The GUI provides MPlayer with the respective (next) filename to play
and playtree_iter is always NULL in connection with the GUI. MPlayer
must not clear the filename then, or else filename related config like
load_per_protocol_config(), load_per_extension_config() or
load_per_file_config() won't work.
The GUI sets filename NULL now if there is no further file to play.
author | ib |
---|---|
date | Sat, 15 Oct 2011 10:37:36 +0000 |
parents | 305dc504c407 |
children |
line wrap: on
line source
#!/bin/sh # Script to run mplayer on the console (fbdev/mga_vid/etc) without # the console text and/or flashing cursor getting in the way. # Written by Rich Felker. trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT res=`PATH="$PATH:/usr/sbin" fbset | grep geometry | sed 's/^ *//'` width=`echo "$res" | cut -d' ' -f2` height=`echo "$res" | cut -d' ' -f3` tput civis clear mplayer -vo mga -screenw "$width" -screenh "$height" "$@" >/dev/null 2>&1