mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed initial channel display if Setup.TimeoutRequChInfo is 'no'
This commit is contained in:
parent
739fcc7aff
commit
4ddd5fa944
6
vdr.c
6
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/vdr
|
* The project's page is at http://www.cadsoft.de/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 1.227 2006/01/04 15:09:07 kls Exp $
|
* $Id: vdr.c 1.228 2006/01/05 13:54:04 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -480,7 +480,7 @@ int main(int argc, char *argv[])
|
|||||||
// Main program loop variables - need to be here to have them initialized before any EXIT():
|
// Main program loop variables - need to be here to have them initialized before any EXIT():
|
||||||
|
|
||||||
cOsdObject *Menu = NULL;
|
cOsdObject *Menu = NULL;
|
||||||
int LastChannel = -1;
|
int LastChannel = 0;
|
||||||
int LastTimerChannel = -1;
|
int LastTimerChannel = -1;
|
||||||
int PreviousChannel[2] = { 1, 1 };
|
int PreviousChannel[2] = { 1, 1 };
|
||||||
int PreviousChannelIndex = 0;
|
int PreviousChannelIndex = 0;
|
||||||
@ -717,7 +717,7 @@ int main(int argc, char *argv[])
|
|||||||
// Channel display:
|
// Channel display:
|
||||||
if (!EITScanner.Active() && cDevice::CurrentChannel() != LastChannel) {
|
if (!EITScanner.Active() && cDevice::CurrentChannel() != LastChannel) {
|
||||||
if (!Menu)
|
if (!Menu)
|
||||||
Menu = new cDisplayChannel(cDevice::CurrentChannel(), LastChannel > 0);
|
Menu = new cDisplayChannel(cDevice::CurrentChannel(), LastChannel >= 0);
|
||||||
LastChannel = cDevice::CurrentChannel();
|
LastChannel = cDevice::CurrentChannel();
|
||||||
LastChannelChanged = time(NULL);
|
LastChannelChanged = time(NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user