1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Fix http-rang streaming

This commit is contained in:
Afterster 2014-05-27 23:15:08 +02:00
parent c90ee9b2c5
commit 69015e02ea

View file

@ -421,7 +421,7 @@ sscanf($_SERVER['HTTP_RANGE'], "bytes=%d-%d", $start, $end);
if ($start > 0 || $end > 0) { if ($start > 0 || $end > 0) {
// Calculate stream size from byte range // Calculate stream size from byte range
if (isset($end)) { if ($end > 0) {
$end = min($end, $media->size - 1); $end = min($end, $media->size - 1);
$stream_size = ($end - $start) + 1; $stream_size = ($end - $start) + 1;
} else { } else {