From d70300c284e19520dd69b63a973ce95b8408e7fc Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 29 Mar 2011 12:02:23 -0400 Subject: Fix byterange bug Byteranges can start with zero - e.g. 0-1 is a valid byterange, and should invoke 'byterange' mode. --- play/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play/index.php') diff --git a/play/index.php b/play/index.php index a68223c8..0b94a0b6 100644 --- a/play/index.php +++ b/play/index.php @@ -338,7 +338,7 @@ if (get_class($media) == 'Song') { Stream::insert_now_playing($media->id,$uid,$media->time,$sid,get_class($media)); } -if ($start > 0) { +if ($start > 0 || $end > 0 ) { // Calculate stream size from byte range if(isset($end)) { -- cgit