mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Fixed teardown.
This commit is contained in:
parent
3a16e57f87
commit
8bd4a1a67d
4
tuner.c
4
tuner.c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user