summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-14 18:16:28 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-14 18:16:28 +0000
commit4d7170217da3a9361d2f7ebb135dea77d5372870 (patch)
treed453c7fcdf287c52a7a7bde70625879af8696707 /play/index.php
parent134e6a164e8d9988f1573458aeb9046b192b0378 (diff)
downloadampache-4d7170217da3a9361d2f7ebb135dea77d5372870.tar.gz
ampache-4d7170217da3a9361d2f7ebb135dea77d5372870.tar.bz2
ampache-4d7170217da3a9361d2f7ebb135dea77d5372870.zip
fixed the seeking bug and a few other minor ones thank Sven F.
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index 01e37db7..c6414357 100644
--- a/play/index.php
+++ b/play/index.php
@@ -216,9 +216,10 @@ else {
elseif ($start) {
$browser->downloadHeaders($song_name, $song->mime, false, $song->size);
fseek( $fp, $start );
- $range = $start ."-". $song->size . "/" . $song->size;
+ $range = $start ."-". ($song->size-1) . "/" . $song->size;
header("HTTP/1.1 206 Partial Content");
header("Content-Range: bytes=$range");
+ header("Content-Length: ".($song->size-$start));
}
/* Last but not least pump em out */
else {