Skip to content

Commit

Permalink
EIT active scan fix for recording start
Browse files Browse the repository at this point in the history
When stopping EIT active scan on a conflicting input, in order to
start a recording or Live TV, do a complete TuningShutdowns instead
of only a CloseChannel. The difference is that the TuningShutdowns
also closes the stream handler which is not done on a CloseChannel.
When the stream handler of the input that did the EIT active scan
remains active it will receive packets from the conflicting input
that is selected for the recording or the Live TV.
This then caused a few "Program not found in PAT" error messages.
  • Loading branch information
kmdewaal committed Dec 21, 2023
1 parent 20766cf commit 592d9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/tv_rec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ void TVRec::HandleStateChange(void)
.arg(input));
tv_rec->m_scanner->StopActiveScan();
tv_rec->ClearFlags(kFlagEITScannerRunning, __FILE__, __LINE__);
tv_rec->CloseChannel();
tv_rec->TuningShutdowns(TuningRequest(kFlagNoRec));
auto secs = m_eitCrawlIdleStart + eit_start_rand(m_inputId, m_eitTransportTimeout);
tv_rec->m_eitScanStartTime = MythDate::current().addSecs(secs.count());
}
Expand Down

0 comments on commit 592d9de

Please sign in to comment.