Skip to content

Commit

Permalink
Fix #65 RTSP streams not disconnected on error (#66)
Browse files Browse the repository at this point in the history
Fix for #65 RTSP streams not disconnected on error
  • Loading branch information
maazl committed Dec 28, 2020
1 parent cc19cff commit df81905
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tuner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit df81905

Please sign in to comment.