[mythtv] [PATCH] Remove use of deprecated DVB events.

Kenneth Aafløy lists at kenneth.aafloy.net
Wed Aug 31 03:39:26 UTC 2005


Hi!

This patch removes the FE_GET_EVENT usage in dvbchannel, not only because
it's deprecated, but because it's deprecated for a reason.  What's happening 
here is that the events are flushed right after the card get's a lock and
thus dvbchannel deadlocks waiting for an event.

The deadlock was caused by bad programming, but the user/kernel space race
of FE_GET_EVENT still exists.

The event handling is replaced by a simple busy loop that waits for 5 
consecutive status == lock over a maximum period of 5 seconds.

At least I can change channel a few times without myth crashing or
deadlocking now :)

I've also attached the ca_pmt patch I sent earlier, since I forgot to remove
a debug statement, gee I'm tired.

Kenneth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ca_pmt.patch
Type: text/x-diff
Size: 528 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050831/ecddda3d/ca_pmt.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eventlock.patch
Type: text/x-diff
Size: 6729 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050831/ecddda3d/eventlock.bin


More information about the mythtv-dev mailing list