summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-11-26 22:24:43 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-11-26 22:24:43 +0000
commit37e167b1a82f89bbb1c1a892d655eaa56c201de5 (patch)
treea1fb8af9391f27573094a46b46ad05bd97262af3 /play/index.php
parentb8fe75626cdd4fe526f31de959f3ab5888c1671a (diff)
downloadampache-37e167b1a82f89bbb1c1a892d655eaa56c201de5.tar.gz
ampache-37e167b1a82f89bbb1c1a892d655eaa56c201de5.tar.bz2
ampache-37e167b1a82f89bbb1c1a892d655eaa56c201de5.zip
new m4a streaming mojo
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/play/index.php b/play/index.php
index 61366aa1..b869901a 100644
--- a/play/index.php
+++ b/play/index.php
@@ -204,7 +204,7 @@ else {
// Prevent the script from timing out
set_time_limit(0);
- if ($user->prefs['play_type'] == 'downsample') {
+ if ($user->prefs['play_type'] == 'downsample' || !$song->native_stream()) {
$fp = start_downsample($song,$lastid,$song_name);
@@ -247,7 +247,7 @@ else {
delete_now_playing($lastid);
/* Clean up any open ends */
- if ($user->prefs['play_type'] == 'downsample') {
+ if ($user->prefs['play_type'] == 'downsample' || !$song->native_stream()) {
@pclose($fp);
}
else {