[Slim-Checkins] r10246 - /branches/6.5/server/Slim/Formats/MP3.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Fri Oct 6 12:21:20 PDT 2006


Author: andy
Date: Fri Oct  6 12:21:19 2006
New Revision: 10246

URL: http://svn.slimdevices.com?rev=10246&view=rev
Log:
Binmode the fh to be safe

Modified:
    branches/6.5/server/Slim/Formats/MP3.pm

Modified: branches/6.5/server/Slim/Formats/MP3.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Slim/Formats/MP3.pm?rev=10246&r1=10245&r2=10246&view=diff
==============================================================================
--- branches/6.5/server/Slim/Formats/MP3.pm (original)
+++ branches/6.5/server/Slim/Formats/MP3.pm Fri Oct  6 12:21:19 2006
@@ -298,6 +298,8 @@
 
 sub findFrameBoundaries {
 	my ($class, $fh, $offset, $seek) = @_;
+	
+	binmode $fh;
 
 	my ($start, $end) = (0, 0);
 
@@ -360,6 +362,8 @@
 
 sub getFrame {
 	my ( $class, $fh ) = @_;
+
+	binmode $fh;
 	
 	my $offset = tell $fh;
 		



More information about the checkins mailing list