diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-06-16 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-06-16 18:00:00 +0200 |
commit | f06d2c27fca449148d9d8fac19d81c668744f170 (patch) | |
tree | 8f21a604339719672bf7ab8b6e9d69bfa1817ac5 /config.c | |
parent | d07e3829f7c44d713b2677ef73f864af80b3dea3 (diff) | |
download | vdr-patch-lnbsharing-f06d2c27fca449148d9d8fac19d81c668744f170.tar.gz vdr-patch-lnbsharing-f06d2c27fca449148d9d8fac19d81c668744f170.tar.bz2 |
Version 1.1.3vdr-1.1.3
- Improved the VDR Makefile to avoid a warning if the '.dependencies' file does
not exist, and also using $(MAKE) to call recursive makes.
- Changed the name of the 'package' target in the plugin Makefiles to 'dist'
(following the suggestions in the "GNU Make" manual). If you already have started
a plugin project, you may want to change this in your Makefile accordingly.
- Improved the plugin Makefile to avoid a warning if the '.dependencies' file does
not exist, and also using $(shell...) to get the version numbers. If you already have
started a plugin project, you may want to change this in your Makefile accordingly.
- Fixed some function headers to make them compile with gcc 3.x (thanks to
Gregoire Favre).
- Fixed the cutting mechanism to make it re-sync in case a frame is larger than the
buffer (thanks to Sven Grothklags).
- Added an error message if the directory specified in the '-L' option can't be
accessed (suggested by Stefan Huelswitt).
- Rearranged OSD class names to make 'cOsd' available for the main OSD interface.
- Completely moved OSD handling out of the cDvbApi class, into the new cOsd.
- Implemented cStatus to allow plugins to set up a status monitor.
See PLUGINS.html for details.
- Moved the cEITScanner out of dvbapi.h/.c, into the new eitscan.h/.c.
- Added Swedish language texts (thanks to Tomas Prybil).
- Fixed parsing 'E' records in epg2html.pl (thanks to Matthias Fechner for pointing
out this one).
- Removed compiler option '-m486' to make it work on non-Intel platforms. If you
have already started a plugin project, you may want to make sure you remove this
option from your existing Makefile.
- Completely rearranged the recording and replay functions to make them available
to plugins.
- Replay is now done in a single thread (no more syncing between input and output
thread necessary).
- It is now possible to record several channels on the same transponder with "budget
cards". VDR automatically attaches a recording timer to a card that already
records on the appropriate transponder. How many parallel recordings can actually
be done depends on the computer's performance. Currently any number of recordings
gets attached to a card, so you should carefully plan your timers to not exceed
the limit. On a K6-II/450 it was possible to record three channels from transponder
12480 with a single WinTV NOVA-S.
- Timers that record two successive shows on the same channel may now overlap and
will use the same DVB card. During the time where both timers record the data
is simply saved to both files.
- The following limitations apply to this version:
+ Transfer mode doesn't work yet.
+ The '-a' option (for Dolby Digital audio) doesn't work yet.
+ Switching between different language tracks doesn't work yet.
+ Cutting doesn't work yet.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 29 |
1 files changed, 16 insertions, 13 deletions
@@ -4,16 +4,16 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.101 2002/05/13 16:28:12 kls Exp $ + * $Id: config.c 1.102 2002/06/16 12:57:31 kls Exp $ */ #include "config.h" #include <ctype.h> #include <stdlib.h> -#include "dvbapi.h" #include "i18n.h" #include "interface.h" #include "plugin.h" +#include "recording.h" // IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d' // format characters in order to allow any number of blanks after a numeric @@ -293,15 +293,15 @@ bool cChannel::Save(FILE *f) return fprintf(f, ToText()) > 0; } -bool cChannel::Switch(cDvbApi *DvbApi, bool Log) +bool cChannel::Switch(cDevice *Device, bool Log) { - if (!DvbApi) - DvbApi = cDvbApi::PrimaryDvbApi; - if (!DvbApi->Recording() && !groupSep) { + if (!Device) + Device = cDevice::PrimaryDevice(); + if (!(Device->IsPrimaryDevice() && Device->Receiving()) && !groupSep) { if (Log) isyslog("switching to channel %d", number); for (int i = 3; i--;) { - switch (DvbApi->SetChannel(number, frequency, polarization, diseqc, srate, vpid, apid1, apid2, dpid1, dpid2, tpid, ca, pnr)) { + switch (Device->SetChannel(number, frequency, polarization, diseqc, srate, vpid, apid1, tpid, ca, pnr)) { case scrOk: return true; case scrNoTransfer: if (Interface) Interface->Error(tr("Can't start Transfer Mode!")); @@ -312,7 +312,7 @@ bool cChannel::Switch(cDvbApi *DvbApi, bool Log) } return false; } - if (DvbApi->Recording()) + if (Device->IsPrimaryDevice() && Device->Receiving()) Interface->Error(tr("Channel locked (recording)!")); return false; } @@ -326,7 +326,7 @@ cTimer::cTimer(bool Instant) startTime = stopTime = 0; recording = pending = false; active = Instant ? taActInst : taInactive; - cChannel *ch = Channels.GetByNumber(cDvbApi::CurrentChannel()); + cChannel *ch = Channels.GetByNumber(cDevice::CurrentChannel()); channel = ch ? ch->number : 0; time_t t = time(NULL); struct tm tm_r; @@ -836,10 +836,10 @@ cChannel *cChannels::GetByServiceID(unsigned short ServiceId) return NULL; } -bool cChannels::SwitchTo(int Number, cDvbApi *DvbApi) +bool cChannels::SwitchTo(int Number, cDevice *Device) { cChannel *channel = GetByNumber(Number); - return channel && channel->Switch(DvbApi); + return channel && channel->Switch(Device); } const char *cChannels::GetChannelNameByNumber(int Number) @@ -957,6 +957,7 @@ bool cSetupLine::operator< (const cListObject &ListObject) bool cSetupLine::Parse(char *s) { + //dsyslog("cSetupLine::Parse '%s'", s);//XXX- char *p = strchr(s, '='); if (p) { *p = 0; @@ -974,6 +975,7 @@ bool cSetupLine::Parse(char *s) } name = strdup(Name); value = strdup(Value); + //dsyslog("cSetupLine::Parse '%s' = '%s'", name, value);//XXX- return true; } } @@ -982,6 +984,7 @@ bool cSetupLine::Parse(char *s) bool cSetupLine::Save(FILE *f) { + //dsyslog("cSetupLine::Save '%s' = '%s'", name, value);//XXX- return fprintf(f, "%s%s%s = %s\n", plugin ? plugin : "", plugin ? "." : "", name, value) > 0; } @@ -1095,7 +1098,7 @@ bool cSetup::Load(const char *FileName) void cSetup::StoreCaCaps(const char *Name) { - for (int d = 0; d < MAXDVBAPI; d++) { + for (int d = 0; d < MAXDEVICES; d++) { char buffer[MAXPARSEBUFFER]; char *q = buffer; *buffer = 0; @@ -1115,7 +1118,7 @@ bool cSetup::ParseCaCaps(const char *Value) { char *p; int d = strtol(Value, &p, 10); - if (d > 0 && d <= MAXDVBAPI) { + if (d > 0 && d <= MAXDEVICES) { d--; int i = 0; while (p != Value && p && *p) { |