[PATCH] Re: [mythtv] Another strange frontend hang

Derek Atkins warlord at MIT.EDU
Sat Oct 4 17:41:15 EDT 2003


Kenneth Aafl°y <ke-aa at frisurf.no> writes:

> There's something wrong with the AudioOutputOss class, others have posted 
> similar backtraces. One 'problem' I can see right off is that it's restarting 
> the whole thread (possible missing something?), instead of just 
> reinitializing the card/class.

I took a look at this and there appears to be a race condition in the
KillAudio method which I happen to be hitting.  The enclosed patch
seems to close that window (or at least reduce it enough) so that I
don't see the problem anymore....  At least my test case is no longer
mis-behaving (I had a test-case that produced the hang 100% until I
applied this patch).

I still see the "Audio has changed" messages but it doesn't seem to
hang anymore.  We'll see if I can reproduce it again later.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: audiooutput.diff
Type: text/x-patch
Size: 699 bytes
Desc: AudioOutputOSS patch
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20031004/1d10ea0f/audiooutput.bin
-------------- next part --------------

> Kenneth


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the mythtv-dev mailing list