[mythtv-commits] Ticket #6066: Wakeup time not set if Myth shuts down just before a scheduled recording
MythTV
mythtv at cvs.mythtv.org
Tue Apr 20 09:44:26 UTC 2010
#6066: Wakeup time not set if Myth shuts down just before a scheduled recording
-------------------------------------------------+--------------------------
Reporter: bullestock@… | Owner: ijr
Type: patch | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythwelcome & Mythshutdown | Version: head
Severity: medium | Mlocked: 0
-------------------------------------------------+--------------------------
Comment(by ralfd):
Ok, I guess I was a little too optimistic. There a a few different code
sections that control this behaviour, not only the one I changed so far.
I was able to reproduce the behaviour that was reported by bullestock. The
problem is that the code does not consider the time we give the backend
prior to shutting down (m_secondsToShutdown). Most people probably have
this value set pretty low (60 or 120s). Therefore it is rather unlikely
that it becomes a problem. One would have to exit the frontend exactly
within that timeframe prior to the next system start-up in order to have
problems with it. The higher m_secondsToShutdown is the higher the
probability that it becomes an issue.
I will dig into the code a little more when time allows and hope to be
able to present a clean fix for this issue soon.
Don't bother applying the patch I uploaded.
Replying to [comment:5 ralfd]:
> A small change in welcomedialog.cpp should take care of this:
>
> void WelcomeDialog::updateStatusMessage(void)
> {
> m_statusList.clear();
>
> QDateTime curtime = QDateTime::currentDateTime();
>
> if (!m_isRecording && !m_nextRecordingStart.isNull() &&
> curtime.secsTo(m_nextRecordingStart) - m_preRollSeconds '''-
> m_secondsToShutdown''' < m_idleWaitForRecordingTime * 60)
> {
> m_statusList.append(tr("MythTV is about to start recording."));
> }
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6066#comment:9>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list