[mythtv-commits] Ticket #13396: DVB channelscan Scan Progress more than 100%

MythTV noreply at mythtv.org
Mon Feb 4 17:19:23 UTC 2019


#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


More information about the mythtv-commits mailing list