Mailing List Archive

Ticket #13396: DVB channelscan Scan Progress more than 100%
#13396: DVB channelscan Scan Progress more than 100%
----------------------------------+-----------------------------
Reporter: Klaas de Waal | Owner: (none)
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: Master Head
Severity: medium | Keywords: DVB channelscan
Ticket locked: 0 |
----------------------------------+-----------------------------
In mythtv-setup SCANNING page the progress is presented in the "Scan
Progress" status bar. However, the percentage progress that is displayed
can be more than 100%. Attached is a screenshot that shows a "Scan
Progress" of 117%.\\

The cause of this is an incomplete initialization, "table scanner reset",
in ChannelScanSM::ScanTransport, file channelscan_sm.cpp.
Initialization of the ATSC major and minor numbers is done with
SetChannel(); what needs to be added is a call to SetDVBService() to
initialize the network ID and the transport ID.\\
This is needed for DTVSignalMonitor::HandleSDT().

Below is the code with the fix included:

{{{
// If we have a DTV Signal Monitor, perform table scanner reset
if (GetDTVSignalMonitor() &&
GetDTVSignalMonitor()->GetScanStreamData())
{
GetDTVSignalMonitor()->GetScanStreamData()->Reset();
GetDTVSignalMonitor()->SetChannel(-1,-1);
GetDTVSignalMonitor()->SetDVBService(0, 0, -1);
}

}}}
The patch for this is attached.\\

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13396>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13396: DVB channelscan Scan Progress more than 100% [ In reply to ]
#13396: DVB channelscan Scan Progress more than 100%
------------------------------+------------------------------
Reporter: Klaas de Waal | Owner: (none)
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution:
Keywords: DVB channelscan | Ticket locked: 0
------------------------------+------------------------------
Changes (by Klaas de Waal):

* Attachment "mythtv-setup_scanning_mma_117.PNG" added.

Scan Progress 117% when scanning the last transport.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13396>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13396: DVB channelscan Scan Progress more than 100% [ In reply to ]
#13396: DVB channelscan Scan Progress more than 100%
------------------------------+------------------------------
Reporter: Klaas de Waal | Owner: (none)
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution:
Keywords: DVB channelscan | Ticket locked: 0
------------------------------+------------------------------
Changes (by Klaas de Waal):

* Attachment "20190204-scanner-reset.patch" added.


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13396>
MythTV <http://www.mythtv.org>
MythTV Media Center