Bug 7225 - MP3 streams that don't send content-type header fail
: MP3 streams that don't send content-type header fail
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Streaming To SlimServer
: 7.0
: Macintosh Other
: P1 normal (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-19 10:25 UTC by Andy Grundman
Modified: 2009-09-08 09:19 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Grundman 2008-02-19 10:25:57 UTC
Example stream: http://81.149.63.45:8080/listen.pls

Patch:

--- Slim/Player/Protocols/HTTP.pm	(revision 29591)
+++ Slim/Player/Protocols/HTTP.pm	(local)
@@ -262,6 +262,9 @@
 	
 	my ($title, $bitrate, $metaint, $redir, $contentType, $length, $body);
 	
+	# Default contentType to audio/mpeg as some servers don't send the type
+	$contentType = 'audio/mpeg';
+	
 	foreach my $header (@headers) {
 	
 		logger('player.streaming.direct')->debug("header-ds: $header");
Comment 1 Ben Klaas 2008-02-19 10:59:43 UTC
I have no problem to defaulting to audio/mpeg...but do we care about non-mpeg streams that don't send a content-type header?
Comment 2 Andy Grundman 2008-02-19 11:07:33 UTC
I'm not aware of any non-mp3 streams that don't send content-type.

BTW, we already had this default to audio/mpeg (Squeezebox2.pm line 339), but since I added a parseDirectHeaders method to Protocols::HTTP it was getting reset to undef.
Comment 3 Ben Klaas 2008-02-19 11:09:55 UTC
okay. IMO, commit it. Dean?
Comment 4 Blackketter Dean 2008-02-19 18:51:47 UTC
Let's put it into trunk.    No need to risk 7.0 at this point.   Anybody with this issue can get the trunk nightly.

Sound ok?
Comment 5 Andy Grundman 2008-02-19 21:04:52 UTC
Fixed in change 17649.
Comment 6 Andy Grundman 2008-03-05 15:42:10 UTC
*** Bug 7423 has been marked as a duplicate of this bug. ***
Comment 7 Spies Steven 2008-05-08 13:29:48 UTC
Verified fixed with SqueezeCenter Version: 7.0.1 - 19522
Comment 8 James Richardson 2008-05-15 12:28:09 UTC
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1

Please try that version, if you still see the error, then reopen this bug.

To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html
Comment 9 Chris Owens 2009-07-31 10:17:27 UTC
Reduce number of active targets for SC