PDA

View Full Version : Crash with SlimServer 6.svn and Clutter



Pierce T.Wetter III
2005-03-07, 14:43
Clutter is a Mac OS X program that displays a picture of the currently
playing song, and it happens to talk to slimserver.

It crashes 6.x with this error though:

Undefined subroutine &Slim::Music::Info::durationSeconds called at
/Users/pierce/svnProjects/slimserver/server/Slim/Control/Command.pm
line 1340.

Robert Moser
2005-03-07, 15:16
Pierce T.Wetter III wrote:
> Clutter is a Mac OS X program that displays a picture of the currently
> playing song, and it happens to talk to slimserver.
>
> It crashes 6.x with this error though:
>
> Undefined subroutine &Slim::Music::Info::durationSeconds called at
> /Users/pierce/svnProjects/slimserver/server/Slim/Control/Command.pm line
> 1340.

Looks like a function which was removed was still being used.

Try replacing line 1340 with this:
my $track = $ds->objectForUrl(Slim::Player::Playlist::song($client) );
my $dur = $track->secs() if $track;