Fixed teardown.

This commit is contained in:
Rolf Ahrenberg 2014-11-23 00:13:15 +02:00
parent 3a16e57f87
commit 8bd4a1a67d
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,7 @@ bool cSatipTuner::Disconnect(void)
if (!isempty(*streamAddrM) && (streamIdM >= 0)) {
cString uri = cString::sprintf("rtsp://%s/stream=%d", *streamAddrM, streamIdM);
rtspM.Teardown(*uri);
streamIdM = -1;
}
//currentStateM = tsIdle;
//nextStateM = tsIdle;
@ -457,6 +458,9 @@ bool cSatipTuner::RequestState(eTunerState stateP)
cMutexLock MutexLock(&mutexM);
debug("cSatipTuner::%s(%s) current=%s next=%s [device %d]", __FUNCTION__, TunerStateString(stateP), TunerStateString(currentStateM), TunerStateString(nextStateM), deviceIdM);
if (currentStateM != nextStateM)
debug("cSatipTuner::%s() invalid state change attempt [device %d]", __FUNCTION__, deviceIdM);
// validate legal state changes
switch (currentStateM) {
case tsIdle: