Permalink
Browse files

mplayer: fix mplayer2/mpv-style options not working with mplayer1

  • Loading branch information...
bucaneer authored and squentin committed Oct 3, 2015
1 parent 9c18e38 commit 4f7d7faf5fec85b57250717abc24a31e2b31cbc7
Showing with 2 additions and 2 deletions.
  1. +2 −2 gmusicbrowser_mplayer.pm
View
@@ -64,8 +64,8 @@ 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 --input=nodefault-bindings:conf=/dev/null#);
push @cmd_and_args, qw/-softvol -volume 0 --softvol-max=100/ if $SoftVolume;
@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;
pipe $OUTPUTfh,my$wfh;

0 comments on commit 4f7d7fa

Please sign in to comment.