[Slim-Checkins] r10365 - in /trunk/server: Changelog6.html Slim/Player/Player.pm

adrian at svn.slimdevices.com adrian at svn.slimdevices.com
Mon Oct 16 10:22:32 PDT 2006


Author: adrian
Date: Mon Oct 16 10:22:27 2006
New Revision: 10365

URL: http://svn.slimdevices.com?rev=10365&view=rev
Log:
Bug: 4382
Description: return blank second screen when playlist is empty to
avoid leaving display on screen 2

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

Modified: trunk/server/Changelog6.html
URL: http://svn.slimdevices.com/trunk/server/Changelog6.html?rev=10365&r1=10364&r2=10365&view=diff
==============================================================================
--- trunk/server/Changelog6.html (original)
+++ trunk/server/Changelog6.html Mon Oct 16 10:22:27 2006
@@ -88,6 +88,7 @@
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4365">#4365</a> - ReplayGain.pm crash while using RadioTime</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4369">#4369</a> - songinfo download returns 404</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4376">#4376</a> - accessing log.txt causes a crash</li>
+		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4382">#4382</a> - Now Playing Empty shows on both screens</li>
 	</ul>
 </ul>
 

Modified: trunk/server/Slim/Player/Player.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Player/Player.pm?rev=10365&r1=10364&r2=10365&view=diff
==============================================================================
--- trunk/server/Slim/Player/Player.pm (original)
+++ trunk/server/Slim/Player/Player.pm Mon Oct 16 10:22:27 2006
@@ -565,8 +565,11 @@
 
 	if ($playlistlen < 1) {
 
-		$parts->{line}[0] = $client->string('NOW_PLAYING');
-		$parts->{line}[1] = $client->string('NOTHING');
+		$parts = { 'line' => [ $client->string('NOW_PLAYING'), $client->string('NOTHING') ] };
+
+		if ($client->display->showExtendedText() && !$suppressScreen2) {
+			$parts->{'screen2'} = {};
+		}
 
 	} else {
 



More information about the checkins mailing list