Skip to content

Commit

Permalink
mplayer: fix Failed to open ~/.mplayer/input.conf
Browse files Browse the repository at this point in the history
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 Aug 3, 2015
1 parent 149273e commit 8f95c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmusicbrowser_mplayer.pm
Expand Up @@ -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;
Expand Down

0 comments on commit 8f95c16

Please sign in to comment.