view TOOLS/mpconsole @ 25523:47a9e9cccebb

Remove redundant extern declarations, fixes the warnings: vo_vesa.c:55: warning: redundant redeclaration of #monitor_hfreq_str# video_out.h:252: warning: previous declaration of #monitor_hfreq_str# was here vo_vesa.c:56: warning: redundant redeclaration of #monitor_vfreq_str# video_out.h:253: warning: previous declaration of #monitor_vfreq_str# was here vo_vesa.c:57: warning: redundant redeclaration of #monitor_dotclock_str# video_out.h:254: warning: previous declaration of #monitor_dotclock_str# was here
author diego
date Sun, 30 Dec 2007 12:12:47 +0000
parents a818bbab1525
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