I simply added additional check for $type of the stream (aap) and
$format (mp3)
It is not perfect - it's too 'specific' for 'universality' of the code
but it works for me ;)
In fact I agree with Bryan - this check on "$format eq 'mp3'" shouldn't
be there at all but since it is, it might have some other purpose which
I'm not aware of...
This patch should not affect other parts of the code but should enable
you to do bitrate limiting on AACPlus streams.
Have a look at "/usr/local/slimserver/Slim/Player/Protocols/HTTP.pm"
starting at line 189.
then change this:
Code:
--------------------
if (defined $command && $command eq '-' || $format eq 'mp3') {
return $url;
}
--------------------
to this:
Code:
--------------------
if (defined $command && $command eq '-' || $format eq 'mp3') {
if ($type eq 'aap' && $format eq 'mp3') {
return 0;
} else {
return $url;
}
}
--------------------
HTH
raff
--
raff
------------------------------------------------------------------------
raff's Profile: http://forums.slimdevices.com/member.php?userid=4320
View this thread: http://forums.slimdevices.com/showthread.php?t=27996
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss