[mythtv-commits] Re: Ticket #744: DVB-s scan misses channels on Astra 28.2

MythTV mythtv at cvs.mythtv.org
Fri Dec 2 19:11:43 UTC 2005


#744: DVB-s scan misses channels on Astra 28.2
---------------------+------------------------------------------------------
 Reporter:  Dibblah  |        Owner:  danielk
     Type:  defect   |       Status:  new    
 Priority:  minor    |    Milestone:  unknown
Component:  mythtv   |      Version:  head   
 Severity:  low      |   Resolution:         
---------------------+------------------------------------------------------
Comment (by mythdev at penyball.cix.co.uk):

 I suspect the timeouts are being ignored because the sql in
 ScanWizardScanner::scan() is broken - which means that the signal and
 channel timeouts default to 1000 and 40000 irrespective of what is set up
 in the database. The patch here fixes this but may break scanning for
 anyone who relied on these default values.
 {{{
 Index: mythtv/libs/libmythtv/scanwizard.cpp
 ===================================================================
 --- mythtv/libs/libmythtv/scanwizard.cpp        (revision 8095)
 +++ mythtv/libs/libmythtv/scanwizard.cpp        (working copy)
 @@ -333,11 +333,13 @@

      MSqlQuery query(MSqlQuery::InitCon());
      query.prepare(QString("SELECT signal_timeout, channel_timeout "
 +                          "FROM capturecard "
                            "WHERE cardid=%1").arg(parent->captureCard()));
      if (query.exec() && query.isActive() && query.size() > 0)
      {
 +        query.next();
          signal_timeout  = (uint) max(query.value(0).toInt(), 250);
 -        channel_timeout = (uint) max(query.value(0).toInt(), 500);
 +        channel_timeout = (uint) max(query.value(1).toInt(), 500);
      }

      if (nScanType == ScanTypeSetting::FullScan_Analog)
 }}}

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/744>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list