[Slim-Checkins] r12807 - /trunk/server/Slim/Player/Player.pm

adrian at svn.slimdevices.com adrian at svn.slimdevices.com
Thu Aug 30 16:51:59 PDT 2007


Author: adrian
Date: Thu Aug 30 16:51:59 2007
New Revision: 12807

URL: http://svn.slimdevices.com?rev=12807&view=rev
Log:
Bug: N/A
Description: at power off stop playing before changing mode as new
showBriefly for pause/stop shows in wrong font otherwise

Modified:
    trunk/server/Slim/Player/Player.pm

Modified: trunk/server/Slim/Player/Player.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Player/Player.pm?rev=12807&r1=12806&r2=12807&view=diff
==============================================================================
--- trunk/server/Slim/Player/Player.pm (original)
+++ trunk/server/Slim/Player/Player.pm Thu Aug 30 16:51:59 2007
@@ -175,12 +175,7 @@
 
 	if (!$on) {
 
-		# turning player off - move to off mode and unsync/pause/stop player
-		$client->killAnimation();
-		$client->brightness($prefs->client($client)->get('powerOffBrightness'));
-
-		Slim::Buttons::Common::setMode($client, 'off');
-
+		# turning player off - unsync/pause/stop player and move to off mode
 		my $sync = $prefs->client($client)->get('syncPower');
 
 		if (defined $sync && $sync == 0) {
@@ -209,6 +204,12 @@
 
 		# turn off audio outputs
 		$client->audio_outputs_enable(0);
+
+		# move display to off mode
+		$client->killAnimation();
+		$client->brightness($prefs->client($client)->get('powerOffBrightness'));
+
+		Slim::Buttons::Common::setMode($client, 'off');
 
 	} else {
 



More information about the checkins mailing list