Permalink
Browse files

TVRec::TuningFrequency: Make sure curRecording exists before trying t…

…o use it.

Refs 1a06d70
  • Loading branch information...
jpoet committed Jun 26, 2013
1 parent 1a06d70 commit 8bb1180e63eaa7200312e11d77b96e7ce4d36915
Showing with 13 additions and 4 deletions.
  1. +13 −4 mythtv/libs/libmythtv/tv_rec.cpp
@@ -3854,10 +3854,19 @@ void TVRec::TuningFrequency(const TuningRequest &request)
{
SetFlags(kFlagWaitingForSignal);
QDateTime expire = curRecording->GetScheduledStartTime() >
MythDate::current() ?
curRecording->GetScheduledStartTime() :
MythDate::current();
QDateTime expire;
if (curRecording)
{
expire = curRecording->GetScheduledStartTime() >
MythDate::current() ?
curRecording->GetScheduledStartTime() :
MythDate::current();
}
else
{
expire = MythDate::current();
}
signalMonitorDeadline =
expire.addMSecs(genOpt.channel_timeout * 2);
}

0 comments on commit 8bb1180

Please sign in to comment.