[Slim-Checkins] r33671 - /7.7/trunk/server/Slim/Player/Protocols/HTTP.pm

[email protected]
Newsgroups gmane.music.equipment.slimdevices.cvs
Message-ID <[email protected]>
Author: ayoung
Date: Wed Nov  9 02:47:34 2011
New Revision: 33671

URL: http://svn.slimdevices.com/slim?rev=33671&view=rev
Log:
bug 17742: Buffering status wrong for players that decode while buffering 
Some stations specify bitrate as b/s instead of kb/s.

Modified:
    7.7/trunk/server/Slim/Player/Protocols/HTTP.pm

Modified: 7.7/trunk/server/Slim/Player/Protocols/HTTP.pm
URL: http://svn.slimdevices.com/slim/7.7/trunk/server/Slim/Player/Protocols/HTTP.pm?rev=33671&r1=33670&r2=33671&view=diff
==============================================================================
--- 7.7/trunk/server/Slim/Player/Protocols/HTTP.pm (original)
+++ 7.7/trunk/server/Slim/Player/Protocols/HTTP.pm Wed Nov  9 02:47:34 2011
@@ -349,7 +349,8 @@
 		}
 		
 		elsif ($header =~ /^(?:icy-br|x-audiocast-bitrate):\s*(.+)/i) {
-			$bitrate = $1 * 1000;
+			$bitrate = $1;
+			$bitrate *= 1000 if $bitrate < 1000;
 		}
 	
 		elsif ($header =~ /^icy-metaint:\s*(.+)/i) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.