Skip to content
Permalink
Browse files

mplayer: fix Failed to open ~/.mplayer/input.conf

gmb's code interpret "Failed to open /home/user/.mplayer/input.conf" as a fatal error message when it isn't.
Adding command line option --input=nodefault-bindings:conf=/dev/null fixes this and makes sure input.conf doesn't cause any problems
  • Loading branch information...
squentin committed Jul 14, 2015
1 parent 149273e commit 8f95c1635717e97bcda26e3be87de1d28f8775ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 gmusicbrowser_mplayer.pm
@@ -64,7 +64,7 @@ sub launch_mplayer
{ $playcounter=0;
#-nocache because when using the cache option it spawns a child process, which makes monitoring the mplayer process much harder
#-hr-mp3-seek to fix wrong time with some mp3s
@cmd_and_args=($mplayer,qw/-nocache -idle -slave -novideo -nolirc -hr-mp3-seek -msglevel all=1:statusline=5:global=6/);
@cmd_and_args=($mplayer,qw#-nocache -idle -slave -novideo -nolirc -hr-mp3-seek -msglevel all=1:statusline=5:global=6 --input=nodefault-bindings:conf=/dev/null#);
push @cmd_and_args, qw/-softvol -volume 0 --softvol-max=100/ if $SoftVolume;
push @cmd_and_args,split / /,$::Options{mplayeroptions} if $::Options{mplayeroptions};
warn "@cmd_and_args\n" if $::debug;

0 comments on commit 8f95c16

Please sign in to comment.
You can’t perform that action at this time.