diff options
Diffstat (limited to 'lib/stream.lib.php')
-rw-r--r-- | lib/stream.lib.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php index 50e9f22f..57be2fe3 100644 --- a/lib/stream.lib.php +++ b/lib/stream.lib.php @@ -250,7 +250,11 @@ function start_downsample($song,$now_playing_id=0,$song_name=0) { $fp = @popen($downsample_command, 'r'); - return ($fp); + /* We need more than just the handle here */ + $return_array['handle'] = $fp; + $return_array['size'] = $sample_ration*$song->size; + + return ($return_array); } // start_downsample |