summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorBrady Wetherington <uberbrady@gmail.com>2011-03-29 12:02:23 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-03-29 12:02:23 -0400
commitd70300c284e19520dd69b63a973ce95b8408e7fc (patch)
tree637732c249e14f64d2e6a7eb8ba56e6c3158a8c1 /play
parentf5248ba0cce5049f253fb622ebd521d4b61f4026 (diff)
downloadampache-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.
Diffstat (limited to 'play')
-rw-r--r--play/index.php2
1 files changed, 1 insertions, 1 deletions
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)) {