summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra D Prabhu <[email protected]>2011-04-10 21:41:59 +0530
committerRaghavendra D Prabhu <[email protected]>2011-04-10 21:41:59 +0530
commit2e14a7721eed972c942d13841a4b7b199ce99418 (patch)
tree3401745d3c68312322044723816ae8c39f300e0e
parent9be7ca6fd73c99610bec6c2ec608e8f3ffd1fdd0 (diff)
downloadScripts-2e14a7721eed972c942d13841a4b7b199ce99418.tar.gz
Scripts-2e14a7721eed972c942d13841a4b7b199ce99418.tar.bz2
Scripts-2e14a7721eed972c942d13841a4b7b199ce99418.zip
fixes
-rw-r--r--functions1
-rwxr-xr-xmplayer11
2 files changed, 7 insertions, 5 deletions
diff --git a/functions b/functions
index 99aa69d..7c9bf1a 100644
--- a/functions
+++ b/functions
@@ -136,3 +136,2 @@ function cscope(){
/usr/bin/cscope -d [email protected]
- popd
}
diff --git a/mplayer b/mplayer
index 0925a4f..726acea 100755
--- a/mplayer
+++ b/mplayer
@@ -165,3 +165,3 @@ fi
-exec &>>|/tmp/mplayer.log
+#exec &>>|/tmp/mplayer.log
@@ -172,3 +172,2 @@ pwdir=$(pwd)
pushd $HOME
-${=LOCK}/mplayer.$randnum /usr/bin/mplayer -$vo_map[$fixedvo] -msglevel all=4 -slave -idle -input file=$MPSOCKET -input conf=$HOME/.mplayer/input.conf.mine &!
popd
@@ -183,4 +182,8 @@ preplay
if [[ $stdin == 1 ]];then
- #pecho "loadfile /dev/fd/0" /tmp/mplayer.fif
- /usr/bin/mplayer -
+ fd=$(readlink -f /dev/stdin)
+ exec 3<&0
+ exec 0</dev/tty
+ ${=LOCK}/mplayer.$randnum /usr/bin/mplayer -$vo_map[$fixedvo] -msglevel all=4 -slave -idle -input file=$MPSOCKET -input conf=$HOME/.mplayer/input.conf.mine &!
+ pecho "loadfile $fd " /tmp/mplayer.fif
+ #/usr/bin/mplayer -
exit 110