[mythtv] "The fallacy that is: spawning a decoder thread will always result in playing" or "Hurry up and wait"

Isaac Richards ijr at po.cwru.edu
Thu Aug 7 21:58:16 EDT 2003


On Thursday 07 August 2003 07:35 pm, Anduin Withers wrote:
> I'm not including a patch. My quick attempt at fixing the problem caused
> another. I'm hoping that someone more familiar with the code will see a
> better solution than what didn't work for me.
<snip>
> PlaybackBox seems to work around this by introducing a timeout waiting for
> the decoder thread to start playing. I don't know if that is the right
> solution, it wasn't the one I tried.

I would either time it out like in playbackbox, or introduce an error 
condition variable to dump it out of that loop -- maybe make IsPlaying() a 
larger function that also checked that, as well as just the playing variable.

Isaac


More information about the mythtv-dev mailing list