[mythtv-commits] Ticket #5491: MythMusic search result insert error
MythTV
mythtv at cvs.mythtv.org
Fri Jul 4 17:13:14 UTC 2008
#5491: MythMusic search result insert error
----------------------------------+-----------------------------------------
Reporter: otto at kolsi dot fi | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythmusic | Version: 0.21-fixes
Severity: medium | Resolution:
Mlocked: 0 |
----------------------------------+-----------------------------------------
Comment(by otto at kolsi dot fi):
If anyone is interested in helping, here are my findings so far:
Playlist::fillSonglistFromQuery() gets called when the new track is
inserted into the current playlist from the search results. However, this
function manipulates internal variable 'raw_playlist' which IS NOT in
correct state when the bug occurs.
When fillSonglistFromQuery() gets called after changing current playlist
through 'Edit playlist' function, the 'raw_playlist' still contains the
'''previous''' playlist which was loaded earlier (when MythMusic was
launched e.g.).
So my fix would be to update the 'raw_playlist' inside Playlist object
immediately after current playlist is changed when using 'Edit playlist'
function.
This sounds like some corner case, but this can easily happen when you
search some songs from the library.. and then the whole current playlist
is blown away. Not very nice when you are having party or something
similar :)
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5491#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list