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:
parent
c90ee9b2c5
commit
69015e02ea
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue