Skip to content

Commit

Permalink
Sat>IP client -- Reset tuner lock status
Browse files Browse the repository at this point in the history
Reset tuner lock status after TEARDOWN and SETUP messages.
This prevents accessing the pid handling code with the list of pids from the previous channel when there is no tuner lock.

Refs #13121
  • Loading branch information
kmdewaal committed Aug 12, 2020
1 parent 91a3646 commit d6e04a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mythtv/libs/libmythtv/recorders/satiprtsp.cpp
Expand Up @@ -126,6 +126,10 @@ bool SatIPRTSP::Setup(const QUrl& url)
.arg(m_sessionid).arg(m_streamid).arg(m_timeout / 1000));
emit(startKeepAlive(m_timeout));

// Reset tuner lock status
QMutexLocker locker(&m_sigmonLock);
m_hasLock = false;

return true;
}

Expand Down Expand Up @@ -185,6 +189,10 @@ bool SatIPRTSP::Teardown(void)
m_valid = false;
m_validOld = false;

// Reset tuner lock status
QMutexLocker locker(&m_sigmonLock);
m_hasLock = false;

return result;
}

Expand Down

0 comments on commit d6e04a4

Please sign in to comment.