1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Removed 'preferred' field to not break channels.conf format in 0.63 release

This commit is contained in:
Klaus Schmidinger 2000-09-10 15:07:15 +02:00
parent 5e9738d37d
commit 380b28cec8
5 changed files with 7 additions and 16 deletions

View File

@ -157,7 +157,6 @@ Video Disk Recorder Revision History
There is currently no mechanism to define and maintain "Channel groups" via There is currently no mechanism to define and maintain "Channel groups" via
the menu, so you'll have to insert "Channel group" control lines into your the menu, so you'll have to insert "Channel group" control lines into your
'channels.conf' file manually (for example with a text editor). 'channels.conf' file manually (for example with a text editor).
XXX additional fields for 'preferred' etc???
- Started a new file named FORMATS with a description of the various file - Started a new file named FORMATS with a description of the various file
formats used by VDR. formats used by VDR.
- The "Primary DVB interface" can now be chosen via the "Setup" menu. - The "Primary DVB interface" can now be chosen via the "Setup" menu.

2
MANUAL
View File

@ -193,4 +193,4 @@ Video Disk Recorder User's Manual
be at the top (bottom) of that page be at the top (bottom) of that page
1 = dto., but the cursor remains at the bottom (top) of 1 = dto., but the cursor remains at the bottom (top) of
the page (this mode allows for faster scrolling the page (this mode allows for faster scrolling
through long lists) through long lists).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: config.c 1.21 2000/09/10 14:32:45 kls Exp $ * $Id: config.c 1.22 2000/09/10 15:07:15 kls Exp $
*/ */
#include "config.h" #include "config.h"
@ -196,7 +196,6 @@ cChannel::cChannel(const cChannel *Channel)
apid = Channel ? Channel->apid : 256; apid = Channel ? Channel->apid : 256;
ca = Channel ? Channel->ca : 0; ca = Channel ? Channel->ca : 0;
pnr = Channel ? Channel->pnr : 0; pnr = Channel ? Channel->pnr : 0;
preferred = Channel ? Channel->preferred : 0;
groupSep = Channel ? Channel->groupSep : false; groupSep = Channel ? Channel->groupSep : false;
} }
@ -212,7 +211,7 @@ const char *cChannel::ToText(cChannel *Channel)
if (Channel->groupSep) if (Channel->groupSep)
asprintf(&buffer, ":%s\n", s); asprintf(&buffer, ":%s\n", s);
else else
asprintf(&buffer, "%s:%d:%c:%d:%d:%d:%d:%d:%d:%d\n", s, Channel->frequency, Channel->polarization, Channel->diseqc, Channel->srate, Channel->vpid, Channel->apid, Channel->ca, Channel->pnr, Channel->preferred); asprintf(&buffer, "%s:%d:%c:%d:%d:%d:%d:%d:%d\n", s, Channel->frequency, Channel->polarization, Channel->diseqc, Channel->srate, Channel->vpid, Channel->apid, Channel->ca, Channel->pnr);
return buffer; return buffer;
} }
@ -235,15 +234,10 @@ bool cChannel::Parse(const char *s)
} }
else { else {
groupSep = false; groupSep = false;
int fields = sscanf(s, "%a[^:]:%d:%c:%d:%d:%d:%d:%d:%d:%d", &buffer, &frequency, &polarization, &diseqc, &srate, &vpid, &apid, &ca, &pnr, &preferred); int fields = sscanf(s, "%a[^:]:%d:%c:%d:%d:%d:%d:%d:%d", &buffer, &frequency, &polarization, &diseqc, &srate, &vpid, &apid, &ca, &pnr);
#define VER062_FIELDS 9 if (fields == 9) {
#define VER063_FIELDS 10
if (fields == VER062_FIELDS || fields == VER063_FIELDS) {
strn0cpy(name, buffer, MaxChannelName); strn0cpy(name, buffer, MaxChannelName);
delete buffer; delete buffer;
if (fields == VER062_FIELDS) {
preferred = 0;
}
} }
else else
return false; return false;

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: config.h 1.18 2000/09/10 14:32:05 kls Exp $ * $Id: config.h 1.19 2000/09/10 15:05:08 kls Exp $
*/ */
#ifndef __CONFIG_H #ifndef __CONFIG_H
@ -75,7 +75,6 @@ public:
int apid; int apid;
int ca; int ca;
int pnr; int pnr;
int preferred; //TODO implement "preferred channel" mechanism
int number; // Sequence number assigned on load int number; // Sequence number assigned on load
bool groupSep; bool groupSep;
cChannel(void); cChannel(void);

3
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.25 2000/09/10 14:45:29 kls Exp $ * $Id: menu.c 1.26 2000/09/10 15:06:15 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -513,7 +513,6 @@ cMenuEditChannel::cMenuEditChannel(int Index)
Add(new cMenuEditIntItem( "Apid", &data.apid, 0, 10000)); //TODO exact limits??? Add(new cMenuEditIntItem( "Apid", &data.apid, 0, 10000)); //TODO exact limits???
Add(new cMenuEditIntItem( "CA", &data.ca, 0, cDvbApi::NumDvbApis)); Add(new cMenuEditIntItem( "CA", &data.ca, 0, cDvbApi::NumDvbApis));
Add(new cMenuEditIntItem( "Pnr", &data.pnr, 0)); Add(new cMenuEditIntItem( "Pnr", &data.pnr, 0));
Add(new cMenuEditIntItem( "Preferred", &data.preferred, 0, 1)); //TODO implement "preferred channel" mechanism
} }
} }