[mythtv-commits] Ticket #11053: let EITScanner cache negative lookups

MythTV noreply at mythtv.org
Mon Aug 27 19:36:14 UTC 2012


#11053: let EITScanner cache negative lookups
---------------------------------+-------------------------
     Reporter:  dekarl@…         |      Owner:  stuarta
         Type:  Patch - Feature  |     Status:  new
     Priority:  minor            |  Milestone:  unknown
    Component:  MythTV - EIT     |    Version:  Master Head
     Severity:  medium           |   Keywords:
Ticket locked:  0                |
---------------------------------+-------------------------
 inspired by Göran Uddeborg

 http://lists.mythtv.org/pipermail/mythtv-dev/2012-August/072902.html

 {{{
 --- libs/libmythtv/eithelper.cpp.orig   2012-08-27 21:27:14.005909017
 +0200
 +++ libs/libmythtv/eithelper.cpp        2012-08-27 21:28:10.981876447
 +0200
 @@ -648,8 +648,7 @@
          return max(*it, 0);

      uint chanid = get_chan_id_from_db(sourceid, atsc_major, atsc_minor);
 -    if (chanid)
 -        srv_to_chanid[key] = chanid;
 +    srv_to_chanid[key] = chanid;

      return chanid;
  }
 @@ -667,8 +666,7 @@
          return max(*it, 0);

      uint chanid = get_chan_id_from_db(sourceid, serviceid, networkid,
 tsid);
 -    if (chanid)
 -        srv_to_chanid[key] = chanid;
 +    srv_to_chanid[key] = chanid;

      return chanid;
  }
 }}}

 Negative hits are relevant for all channels that have either been deleted
 or useonairguide disabled though there is some transmitted guide.
 If a multiplex has no channel at all with useonairguide enabled the whole
 multiplex is skipped.

 The patch is untested as of now as I'm running a modified version of the
 EITScanner at the moment.

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


More information about the mythtv-commits mailing list