[mythtv-users] Myth Music RepeatMode setting missing

Alan Walls Alan.Walls at trimble.co.nz
Sun Nov 21 22:32:49 UTC 2010

> >
> > > For a while now Myth Music has been annoying me because my lounge
> > > frontend keeps resetting its Repeat mode to "All" when I like it set
> > > to "None".
> > >
> > > Today I looked in the MySQL database and found that this frontend
> > > doesn't have a RepeatMode setting while my other frontend does.
> > >
> > > Adding this setting fixed my problem.
> > >
> > > Is this normal behaviour for settings or is it a bug?
> > >
> > > I have just upgraded to 0.24
> > >
> >
> > I'm guessing you just failed to set it. I'm pretty sure you set it in
> > MythMusic every time you toggle the repeat mode (right where you use it,
> > and it remembers what you last used). It's not in settings. Therefore,
> > you were using the default value since you had never toggled the mode,
> > so there was no reason to ever write the mode to the database.
> > 
> > Mike
> It has been like this for months, ever since I rebuilt my frontend changing the machine name of my > frontend.
> I regularly change the setting from All to None by pressing 2 on my remote.  Do I need to do something > else to save the setting?

More testing shows that the setting is still not saved, it just now stays at a default I am happy with.  The Shuffle setting also doesn't get save.  All other Mythtv settings are working as expected so I don't have a database permission issue.

Looking at the code I wonder if the problem is caused by the settings only being saved in the MusicPlayer class's destructor.  This combined with the delayed delete using Qt's deleteLater() function may be causing a race condition failure.


More information about the mythtv-users mailing list