Updatet "binarydir" path evaluation

this should fix the reported problems.
Perfect!! Lets do it...

Am 08.08.2014 um 14:49 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);
>
> Ok, fair enough.
>
> Your method is still flawed though: you don't know where it's finding 
> your binary. Eg. lame isn't part of LMS, thus is installed somewhere 
> in your system. But you're expecting your effects files to be in 
> whatever binary's folder you found first. This can't work. We could 
> assume the files to be in the prefs folder.
>
> I'd suggest you put them in the server's configuration folder. You can 
> find it using Slim::Utils::OSDetect::dirsFor('prefs'). Sounds good?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Logitech/slimserver/pull/24/files#r15990661>.
>