[mythtv] [mythtv-commits] Ticket #5870: Channel Change Script Timeout Patch
Michael T. Dean
mtdean at thirdcontact.com
Sat Nov 1 15:41:38 UTC 2008
On 10/31/2008 07:41 PM, MythTV wrote:
> #5870: Channel Change Script Timeout Patch
>
> I was having a problem where my channel change script was sometimes taking
> longer than 30 seconds (firewire resync issues) and so some recordings
> would get missed. This could have been avoided if I had a way to increase
> the channel change timeout to something greater than 30 seconds.
>
You can also background the channel-change script. It looks like you
should be able to just add " &" to the end of the "External channel
change command" value, but worst-case scenario, you can have Myth call a
script that calls and backgrounds the real script. Then Myth thinks the
channel changed "instantly."
> Attached is a simple patch to move this timeout from the code to the
> database. It still defaults to 30 seconds so users won't notice a
> difference but makes it easier to increase (or decrease) the timeout if
> necessary.
>
> I wasn't sure how to add the default value to the db so I added it to the
> end of dbcheck.cpp.
>
There's no reason to put the setting in the DB as the line:
uint timeout = gContext->GetNumSetting("ChannelChangeTimeout", 30);
specifies a default value of 30, which will be used if there's no value
in the DB.
Mike
More information about the mythtv-dev
mailing list