diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-03 11:40:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-03 11:40:00 +0200 |
commit | d4eb96f725bed149762665ddee275301c9f069a6 (patch) | |
tree | 86490012d641fb095f933a0d3c4f350142f833b6 /config.c | |
parent | 97ada9e02531e7db04e635aec262b056904fce8a (diff) | |
download | vdr-d4eb96f725bed149762665ddee275301c9f069a6.tar.gz vdr-d4eb96f725bed149762665ddee275301c9f069a6.tar.bz2 |
Added EIT support for current/next display0.6.2
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,15 +4,18 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.17 2000/08/06 12:27:38 kls Exp $ + * $Id: config.c 1.18 2000/09/03 09:20:22 kls Exp $ */ #include "config.h" #include <ctype.h> #include <stdlib.h> #include "dvbapi.h" +#include "eit.h" #include "interface.h" +extern cEIT EIT; + // -- cKeys ------------------------------------------------------------------ tKey keyTable[] = { // "Up" and "Down" must be the first two keys! @@ -231,8 +234,10 @@ bool cChannel::Switch(cDvbApi *DvbApi) isyslog(LOG_INFO, "switching to channel %d", Index() + 1); CurrentChannel = Index(); for (int i = 3; i--;) { - if (DvbApi->SetChannel(frequency, polarization, diseqc, srate, vpid, apid, ca, pnr)) + if (DvbApi->SetChannel(frequency, polarization, diseqc, srate, vpid, apid, ca, pnr)) { + EIT.SetProgramNumber(pnr); return true; + } esyslog(LOG_ERR, "retrying"); } return false; |