Fixed cSatipTuner::Disconnect().

This commit is contained in:
Rolf Ahrenberg 2014-11-15 22:58:52 +02:00
parent daa2f903c8
commit 82fe5c59c8
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ bool cSatipTuner::Disconnect(void)
cMutexLock MutexLock(&mutexM);
debug("cSatipTuner::%s() [device %d]", __FUNCTION__, deviceIdM);
if ((tunerStatusM != tsIdle) && !isempty(*streamAddrM) && (streamIdM >= 0)) {
if ((tunerStatusM >= tsTuned) && !isempty(*streamAddrM) && (streamIdM >= 0)) {
cString uri = cString::sprintf("rtsp://%s/stream=%d", *streamAddrM, streamIdM);
rtspM->Teardown(*uri);
}