summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-02-23 13:55:57 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-02-23 13:55:57 +0100
commitdb7f6ee6192b395682685eb2151fb88354a786b5 (patch)
treedf5a99a045a073c9048cb1eab8b1d4b5eaf22c43 /menu.c
parent645f62fee44496cf4a982c8b7ef24c7a6a4ccc2e (diff)
downloadvdr-db7f6ee6192b395682685eb2151fb88354a786b5.tar.gz
vdr-db7f6ee6192b395682685eb2151fb88354a786b5.tar.bz2
Accessing Schedules data directly via cSIProcessor
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/menu.c b/menu.c
index 19c3ecb8..20bfac1e 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.156 2002/02/23 09:33:04 kls Exp $
+ * $Id: menu.c 1.157 2002/02/23 13:55:23 kls Exp $
*/
#include "menu.h"
@@ -1429,7 +1429,7 @@ cMenuScheduleItem::cMenuScheduleItem(const cEventInfo *EventInfo)
class cMenuSchedule : public cOsdMenu {
private:
- cThreadLock threadLock;
+ cMutexLock mutexLock;
const cSchedules *schedules;
bool now, next;
int otherChannel;
@@ -1449,7 +1449,7 @@ cMenuSchedule::cMenuSchedule(void)
cChannel *channel = Channels.GetByNumber(cDvbApi::CurrentChannel());
if (channel) {
cMenuWhatsOn::SetCurrentChannel(channel->number);
- schedules = cDvbApi::PrimaryDvbApi->Schedules(&threadLock);
+ schedules = cSIProcessor::Schedules(mutexLock);
PrepareSchedule(channel);
SetHelp(tr("Record"), tr("Now"), tr("Next"));
}
@@ -2262,8 +2262,8 @@ void cDisplayChannel::DisplayInfo(void)
{
if (withInfo) {
const cEventInfo *Present = NULL, *Following = NULL;
- cThreadLock ThreadLock;
- const cSchedules *Schedules = cDvbApi::PrimaryDvbApi->Schedules(&ThreadLock);
+ cMutexLock MutexLock;
+ const cSchedules *Schedules = cSIProcessor::Schedules(MutexLock);
if (Schedules) {
const cSchedule *Schedule = Schedules->GetSchedule();
if (Schedule) {
@@ -2445,8 +2445,8 @@ bool cRecordControl::GetEventInfo(void)
time_t Time = timer->active == taActInst ? timer->StartTime() + INSTANT_REC_EPG_LOOKAHEAD : timer->StartTime() + (timer->StopTime() - timer->StartTime()) / 2;
for (int seconds = 0; seconds <= MAXWAIT4EPGINFO; seconds++) {
{
- cThreadLock ThreadLock;
- const cSchedules *Schedules = dvbApi->Schedules(&ThreadLock);
+ cMutexLock MutexLock;
+ const cSchedules *Schedules = cSIProcessor::Schedules(MutexLock);
if (Schedules) {
const cSchedule *Schedule = Schedules->GetSchedule(channel->pnr);
if (Schedule) {