Mercurial > mplayer.hg
annotate TOOLS/mpconsole @ 24385:b3507ba314e1
warning fixes:
win32.c: In function 'expCreateSemaphoreA':
win32.c:1751: warning: unused variable 'pp'
win32.c: In function 'expGetStartupInfoA':
win32.c:2187: warning: unused variable 'i'
win32.c: In function 'expLoadLibraryA':
win32.c:2298: warning: unused variable 'i'
win32.c: In function 'expWritePrivateProfileStringA':
win32.c:2786: warning: unused variable 'size'
win32.c: In function 'expGetSystemTimeAsFileTime':
win32.c:3136: warning: unused variable 'local_tm'
win32.c: In function 'expGetEnvironmentVariableA':
win32.c:3150: warning: unused variable 'p'
win32.c: In function 'LookupExternalByName':
win32.c:5371: warning: unused variable 'answ'
author | diego |
---|---|
date | Mon, 10 Sep 2007 13:03:20 +0000 |
parents | a818bbab1525 |
children |
rev | line source |
---|---|
4204
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
1 #!/bin/sh |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
2 # Script to run mplayer on the console (fbdev/mga_vid/etc) without |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
3 # the console text and/or flashing cursor getting in the way. |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
4 # Written by Rich Felker. |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
5 |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
6 trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT |
7696
a818bbab1525
Fix usage for common users that may not have fbset in their path.
diego
parents:
4204
diff
changeset
|
7 res=`PATH="$PATH:/usr/sbin" fbset | grep geometry | sed 's/^ *//'` |
4204
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
8 width=`echo "$res" | cut -d' ' -f2` |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
9 height=`echo "$res" | cut -d' ' -f3` |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
10 tput civis |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
11 clear |
a451ba84410d
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff
changeset
|
12 mplayer -vo mga -screenw "$width" -screenh "$height" "$@" >/dev/null 2>&1 |