[mythtv] RE: MythMusic segfault on empty playlists
Dustin Lucien
dustin.lucien at gmail.com
Thu Jan 13 17:14:24 EST 2005
Thnx. I'll try it when I get home tonight.
Are you (or a group including you) making significant changes to
MythMusic right now? You had mentioned having a number of other
changes.
I had wanted to work on the playback interface, and started mucking
around with some different layouts, but laid off when I saw the
threads pointing at the mfd for future work. Just trying to get a
feel for whether it'd be worthwhile to put the effort into MythMusic,
or direct attention to mfd, or simply wait-and-see if there are enough
cooks in the kitchen. Also very interested in dynamic playlists
(analogous to iTunes Smart playlists). That was another area i
started playing around with, but haven't made much useable progress on
yet.
thnx again,
Dustin
On Thu, 13 Jan 2005 18:33:21 -0000, Paul <mythtv at dsl.pipex.com> wrote:
> Dustin Lucien wrote:
>
> >MythMusic segfaults the frontend when I load without any playlists or
> >ActivePlayQueue. If I go into select music, and choose one song to
> >be added to the active play queue, it works fine. I started looking
> >for a NULL pointer in databasebox or playlist.cpp, but haven't found
> >it yet. Heading to bed, so I thought I'd send it into the list.
>
> >-Dustin
>
> I think the problem is in void PlaybackBox::checkForPlaylists()
> the curMeta is NULL if there are no tracks to play.
>
> Sorry can't create a patch at the moment, I have too many other changes
> in the playbackbox.cpp file that aren't relevent to this problem.
>
> If you make these simple changes I think it should solve the segfault.
>
> if (class LCD * lcd = LCD::Get())
> {
> + if (curMeta)
> + {
> //Show the artist stuff on the LCD
> QPtrList<LCDTextItem> textItems;
> textItems.setAutoDelete(true);
>
> textItems.append(new LCDTextItem(1,
> ALIGN_CENTERED,
> curMeta->Artist() +" [" +
> curMeta->Album() + "] " +
> curMeta->Title(), "Generic", true));
> lcd->switchToGeneric(&textItems);
> + }
> }
>
> Paul
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
More information about the mythtv-dev
mailing list