From 69015e02ea6edd22a7ac46924c4f3d23e65ff04c Mon Sep 17 00:00:00 2001 From: Afterster Date: Tue, 27 May 2014 23:15:08 +0200 Subject: [PATCH] Fix http-rang streaming --- play/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play/index.php b/play/index.php index d942bdbb..bdabdb09 100644 --- a/play/index.php +++ b/play/index.php @@ -421,7 +421,7 @@ sscanf($_SERVER['HTTP_RANGE'], "bytes=%d-%d", $start, $end); if ($start > 0 || $end > 0) { // Calculate stream size from byte range - if (isset($end)) { + if ($end > 0) { $end = min($end, $media->size - 1); $stream_size = ($end - $start) + 1; } else {