Bug 3648 - Player playlist not deleting entries correctly
: Player playlist not deleting entries correctly
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.5b1
: PC Linux (other)
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-27 15:43 UTC by Adrian Smith
Modified: 2011-03-16 04:19 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Smith 2006-06-27 15:43:34 UTC
svn 8161

The playlist stored in the database does not appear to have entries deleted from it correctly.

If you play several albums by "playing" each album in turn, the now playing playlist is maintained correctly.  Each new play action empties the active playlist prior to adding new tracks.  

However if you then cause the player to disconnect and reconnection - e.g. connect to SN and come back - the playlist is loaded from the database and it contains all the tracks played since the last playlist clear.
Comment 1 KDF 2006-06-27 15:57:48 UTC
bug 3579 touches on a similar problem.  editing of playlist tracks doesn't seem to properly clear and reset the current list of tracks in the db. I think the problem stems from line 36 of Schema::Playlist.  removing the eval seems to alwys produce an error.  Dumping $@ would have the same effect for outputting the error. I can't find sql_deletePlaylist as an accessor, and when I use simply deletePaylist, the execute fails.

not sure what else is the right thing to try.
Comment 2 Dan Sully 2006-06-29 15:20:37 UTC
Fixed in change 8214