summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-22 14:14:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-22 14:14:55 +0100
commit98f3934a583790b2119ff5a09d63cb3ede4e78f4 (patch)
tree714048fa8f8a677dc7c8a93d6e393bd73214e71c /menu.c
parent5f0a84d1bf891cb5f09757c52557e012a9dd6ea2 (diff)
downloadvdr-98f3934a583790b2119ff5a09d63cb3ede4e78f4.tar.gz
vdr-98f3934a583790b2119ff5a09d63cb3ede4e78f4.tar.bz2
Added 'CheckRunningStatus' when getting present/following event
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 8d30644e..187174af 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.291 2004/02/22 13:43:55 kls Exp $
+ * $Id: menu.c 1.292 2004/02/22 14:14:55 kls Exp $
*/
#include "menu.h"
@@ -1375,7 +1375,7 @@ void cMenuSchedule::PrepareSchedule(cChannel *Channel)
if (schedules) {
const cSchedule *Schedule = schedules->GetSchedule(Channel->GetChannelID());
if (Schedule) {
- const cEvent *PresentEvent = Schedule->GetPresentEvent();
+ const cEvent *PresentEvent = Schedule->GetPresentEvent(Channel->Number() == cDevice::CurrentChannel());
int num = Schedule->NumEvents();
time_t now = time(NULL) - Setup.EPGLinger * 60;
for (int a = 0; a < num; a++) {
@@ -2764,7 +2764,7 @@ void cDisplayChannel::DisplayInfo(void)
if (Schedule) {
const char *PresentTitle = NULL, *PresentSubtitle = NULL, *FollowingTitle = NULL, *FollowingSubtitle = NULL;
int Lines = 0;
- if ((Present = Schedule->GetPresentEvent()) != NULL) {
+ if ((Present = Schedule->GetPresentEvent(true)) != NULL) {
PresentTitle = Present->Title();
if (!isempty(PresentTitle))
Lines++;
@@ -2772,7 +2772,7 @@ void cDisplayChannel::DisplayInfo(void)
if (!isempty(PresentSubtitle))
Lines++;
}
- if ((Following = Schedule->GetFollowingEvent()) != NULL) {
+ if ((Following = Schedule->GetFollowingEvent(true)) != NULL) {
FollowingTitle = Following->Title();
if (!isempty(FollowingTitle))
Lines++;