[mythtv-commits] Ticket #3102: FIX: mythfrontend crashes bring up the guide when no channels are defined

MythTV mythtv at cvs.mythtv.org
Sun Feb 18 21:13:17 UTC 2007


#3102: FIX: mythfrontend crashes bring up the guide when no channels are defined
--------------------------------+-------------------------------------------
 Reporter:  redmundt at gmail.com  |       Owner:  ijr    
     Type:  patch               |      Status:  new    
 Priority:  trivial             |   Milestone:  unknown
Component:  mythtv              |     Version:  head   
 Severity:  medium              |  
--------------------------------+-------------------------------------------
 Reproduce by:
 1- remove all channels
 2- From main menu: Manage Recordings -> Schedule Recordings -> Program
 Guide

 I suspect this also affects the guide from LiveTV (but I did not verify.)

 The fix I did is below:

 Index: libs/libmythtv/guidegrid.cpp
 ===================================================================
 --- libs/libmythtv/guidegrid.cpp        (revision 12819)
 +++ libs/libmythtv/guidegrid.cpp        (working copy)
 @@ -716,11 +716,11 @@
      int chanNum = row + m_currentStartChannel;
      if (chanNum >= (int) m_channelInfos.size())
          chanNum -= (int) m_channelInfos.size();
 -    if (chanNum >= (int) m_channelInfos.size())
 -        return;

      if (chanNum < 0)
          chanNum = 0;
 +    if (chanNum >= (int) m_channelInfos.size())
 +        return;

      m_programs[row] = proglist = new ProgramList();

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3102>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list