Updatet "binarydir" path evaluation

this should fix the reported problems.
In addition to my last answer.

I need a valid path to the directory where the first executable of the 
trans-coder-line is stored.
This path is used to create an empty file, if the the desired 
substitution file is missing.

Am 08.08.2014 um 14:28 schrieb mherger:
>
> In Slim/Player/TranscodingHelper.pm:
>
> >  	my %subs = ();
> >  	while ($command && $command =~ /\${(.*?)}\$/g) {
> >  		if (!exists $binaries{$1}) {
> > -			my $subfile = File::Spec->catfile( File::Basename::dirname($binaries{$binaryfile}), $1);
> > +			my $subfile = File::Spec->catfile($binarydir || '.', $1);
>
> Why don't you just use
>
> |my $subfile = Slim::Utils::Misc::findbin($1);
> |
>
> ?
>
> And then use File::Slurp to read the file.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Logitech/slimserver/pull/24/files#r15990002>.
>