[mythtv] Playback start race condition

Kyle Rose krose+mythtv at krose.org
Thu Oct 14 15:07:32 UTC 2004


Kyle Rose <krose+mythtv at krose.org> writes:

> programs/mythfrontend/playbackbox.cpp:1402
>     if (tv->Playback(tvrec))
>     {
>         while (tv->GetState() != kState_None)
>         {
>             qApp->unlock();
>             qApp->processEvents();
>             usleep(10000);
>             qApp->lock();
>         }
>     }
>
> Obviously processEvents isn't actually setting whatever tv->GetState()
> returns to something other than kState_None.

This is why I shouldn't try to debug while drinking beer: what is
actually going on here is that tv->GetState() is something other than
kState_None, which means it *thinks* it's playing but actually isn't.
Looks like there's going to be more hell toupee before I figure this
out. :)

Cheers,
Kyle


More information about the mythtv-dev mailing list