Updatet "binarydir" path evaluation

this should fix the reported problems.
Unfortunately

|findbin($1);|


is searching for excutable files only.

If windows findbin  adds .exe to the filename;
If LINUX. find  compares the executable flag.

I did not dare to change findbin (eg addin a flag to ignore executable 
where frue would be default behavior).

|Like:	findbin($1) ~||findbin($1, true);|
New:	findbin ($1, false)




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>.
>