diff options
author | Brady Wetherington <uberbrady@gmail.com> | 2011-03-29 12:02:23 -0400 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2011-03-29 12:02:23 -0400 |
commit | d70300c284e19520dd69b63a973ce95b8408e7fc (patch) | |
tree | 637732c249e14f64d2e6a7eb8ba56e6c3158a8c1 | |
parent | f5248ba0cce5049f253fb622ebd521d4b61f4026 (diff) | |
download | ampache-d70300c284e19520dd69b63a973ce95b8408e7fc.tar.gz ampache-d70300c284e19520dd69b63a973ce95b8408e7fc.tar.bz2 ampache-d70300c284e19520dd69b63a973ce95b8408e7fc.zip |
Fix byterange bug
Byteranges can start with zero - e.g. 0-1 is a valid byterange, and should
invoke 'byterange' mode.
-rwxr-xr-x | docs/CHANGELOG | 1 | ||||
-rw-r--r-- | play/index.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 5b18c896..60b80271 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.6-Alpha1 + - byterange handling for ranges starting with 0 (patch from uberbrady) - Fixed issue with updating ACLs under Windows (reported by Citlali) - Add function that check ampache and php version from each website. - Updated each ampache header comment based on phpdocumentor. 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)) { |