From df819058211431d249cdc2a0af3ddfefd6c231bf Mon Sep 17 00:00:00 2001 From: maazl <12786145+maazl@users.noreply.github.com> Date: Mon, 28 Dec 2020 20:01:12 +0100 Subject: [PATCH] Fix rofafor#65 RTSP streams not disconnected on error (#66) Fix for #65 RTSP streams not disconnected on error --- tuner.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tuner.c b/tuner.c index f722c71..219a556 100644 --- a/tuner.c +++ b/tuner.c @@ -120,6 +120,8 @@ void cSatipTuner::Action(void) break; case tsSet: debug4("%s: tsSet [device %d]", __PRETTY_FUNCTION__, deviceIdM); + // some devices require TEARDOWN before new PLAY command + Disconnect(); if (Connect()) { tuning.Set(eTuningTimeoutMs); RequestState(tsTuned, smInternal);