From 49c1cefcb9a2dc3f81d868655e64d2e357750f9d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 30 Oct 2006 07:18:46 +0000 Subject: few tweaks for flash player and a fixed for downsampleing --- song.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'song.php') 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 */ -- cgit