[mythtv] Number of channles in Program Guide does not obay it's setting when in Live TV mode. Possible fix?

Bruce Markey bjm at lvcm.com
Wed Dec 20 18:58:25 UTC 2006

Zdzislaw Gorlicki wrote:
> just as the topic say, when I change the number of channels to be 
> displayed in Program Guide from 5 to 6, the setting is not obeyed when 
> in Live TV. Looking at the code in guidegrid.cpp, when I commented out 
> lines 196 and 197, the problem is fixed. What is the purpose of these 
> two lines of code?
> Code:
> 194         int dNum = gContext->GetNumSetting("chanPerPage", 8);
> 195    
> 196         if (m_player && m_player->IsRunning() && allowsecondaryepg)
> 197             dNum = dNum * 2 / 3 + 1;
> 198    
> 199         desiredDisplayChans = DISPLAY_CHANS = dNum;

The OSD EPG has a video pane in the upper right. The UI EPG
does not. Therefore, the grid area is shorter in the OSD.
The number is the number of rows in the UI version and is
scaled down for the OSD so that the hight if each row is
relatively the same in both versions.

--  bjm

More information about the mythtv-dev mailing list