summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-30 07:18:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-30 07:18:46 +0000
commit49c1cefcb9a2dc3f81d868655e64d2e357750f9d (patch)
tree2629a06d26be02de3c936b4ee39c7c6b72615248 /song.php
parent598a200b969da093a99153173129257da080f71b (diff)
downloadampache-49c1cefcb9a2dc3f81d868655e64d2e357750f9d.tar.gz
ampache-49c1cefcb9a2dc3f81d868655e64d2e357750f9d.tar.bz2
ampache-49c1cefcb9a2dc3f81d868655e64d2e357750f9d.zip
few tweaks for flash player and a fixed for downsampleing
Diffstat (limited to 'song.php')
-rw-r--r--song.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/song.php b/song.php
index 515392d3..491e9fec 100644
--- a/song.php
+++ b/song.php
@@ -129,8 +129,15 @@ switch ($method) {
default:
$stream_type = conf('playlist_type');
- if ($GLOBALS['user']->prefs['play_type'] != "stream" AND $GLOBALS['user']->prefs['play_type'] != "downsample") {
- $stream_type = $GLOBALS['user']->prefs['play_type'];
+ /* For non-stream/downsample methos we need to so something else */
+ switch ($GLOBALS['user']->prefs['play_type']) {
+ case 'stream':
+ case 'downsample':
+ // Rien a faire
+ break;
+ default:
+ $stream_type = $GLOBALS['user']->prefs['play_type'];
+ break;
}
/* Start the Stream */