From 592d9de8483db46a2db9f4d5f7a5089c6d115c47 Mon Sep 17 00:00:00 2001 From: Klaas de Waal Date: Thu, 21 Dec 2023 16:21:08 +0100 Subject: [PATCH] EIT active scan fix for recording start 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. --- mythtv/libs/libmythtv/tv_rec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp index f548eb30e26..5067d69541d 100644 --- a/mythtv/libs/libmythtv/tv_rec.cpp +++ b/mythtv/libs/libmythtv/tv_rec.cpp @@ -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()); }