[mythtv] Re: [mythtv-commits] mythtv commit: r7209 by danielk

Stuart Auchterlonie stuarta at squashedfrog.net
Thu Sep 8 16:22:08 UTC 2005


On Thu, Sep 08, 2005 at 04:12:58PM +0000, mythtv at cvs.mythtv.org wrote:
>       Author: danielk
>         Date: 2005-09-08 16:12:57 +0000 (Thu, 08 Sep 2005)
> New Revision: 7209
>    Changeset: http://cvs.mythtv.org/trac/changeset/7209
> 
> Modified:
> 
>    trunk/mythtv/libs/libmythtv/dvbchannel.cpp
> 
> Log:
> 
> 
> Updates dvbchannel to take into account the info on DisEqC
> from Allan Stirling, and the select w/small timeout for
> wait_for_backend() from Stuart Auchtertonie.
> 
> With DisEqC this patch changes handle_diseq() to only
> handle DisEqC and leave the tuning to Tune().
> 
> The select should allow cards that do sent tune events
> avoid waiting the full timeout time. This allows us to
> increase the timeout for bad drivers without affecting
> good drivers too much.
> 
> 

Looks like there is a small problem with the way you have
set the timeout for the select loop.

struct timeval select_timeout = { 0, (timeout_ms) % 1000 };

The second component of the timeout is measured in usecs,
so when you are passing in 5000 you get a 5usec timeout.
No quite what you had in mind. This is probably more like it.

struct timeval select_timeout = { 0, (timeout_ms) * 1000 };


Stuart



More information about the mythtv-dev mailing list