I discovered that when my Squeezebox just went to sleep I got some
errormessages on my console.
2007-06-24 21:06:46.5981 Use of uninitialized value in addition (+) at
/home/tomten/SlimServer_v6.5.2/Slim/Buttons/Common.pm line 857.
2007-06-24 21:06:46.5984 Use of uninitialized value in numeric gt (>)
at /home/tomten/SlimServer_v6.5.2/Slim/Buttons/Common.pm line 862.
2007-06-24 21:06:46.5985 Use of uninitialized value in addition (+) at
/home/tomten/SlimServer_v6.5.2/Slim/Buttons/Common.pm line 857.
2007-06-24 21:06:46.5985 Use of uninitialized value in numeric gt (>)
at /home/tomten/SlimServer_v6.5.2/Slim/Buttons/Common.pm line 868.

The cause of it is on line 841 (if
(Slim::Player::Source::playingSong($client) && $client->playmode =~
/play/) {)
If that line is NOT true (The player is stopped) then the variable
$remaining will never be set and cause some errormessages later.
My fix just sets $remaining to zero to initialize it.


+-------------------------------------------------------------------+
|Filename: Common.pm.diff                                           |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=2999|
+-------------------------------------------------------------------+

-- 
eltomten
------------------------------------------------------------------------
eltomten's Profile: http://forums.slimdevices.com/member.php?userid=12113
View this thread: http://forums.slimdevices.com/showthread.php?t=36384

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to