summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
Diffstat (limited to 'play')
-rw-r--r--play/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index b869901a..05d04d63 100644
--- a/play/index.php
+++ b/play/index.php
@@ -206,7 +206,10 @@ else {
if ($user->prefs['play_type'] == 'downsample' || !$song->native_stream()) {
- $fp = start_downsample($song,$lastid,$song_name);
+ $results = start_downsample($song,$lastid,$song_name);
+
+ $fp = $results['handle'];
+ $song->size = $results['size'];
} // end if downsampling