diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-10-04 12:44:13 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-10-04 12:44:13 +0200 |
commit | 612f696bb7fc3d28ed24afd3d8782a6e7a961366 (patch) | |
tree | 3643caba670e36d0bf7261cc139a3ef7a1e42b40 | |
parent | 1e9b16d20bacb9795a07af5ff61db67fc78c3728 (diff) | |
download | vdr-612f696bb7fc3d28ed24afd3d8782a6e7a961366.tar.gz vdr-612f696bb7fc3d28ed24afd3d8782a6e7a961366.tar.bz2 |
Changed DTV_DVBT2_PLP_ID to DTV_STREAM_ID in dvbdevice.c to adapt to an incompatible change in DVB API 5.8
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | dvbdevice.c | 8 |
3 files changed, 9 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 8b05c1c9..43141170 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2695,6 +2695,7 @@ Derek Kelly (user.vdr@gmail.com) several payloads for reporting a problem with getting the maximum short channel name length in case there are no short names at all + for reporting an incompatible change from DTV_DVBT2_PLP_ID to DTV_STREAM_ID in DVB API 5.8 Marcel Unbehaun <frostworks@gmx.de> for adding cRecordingInfo::GetEvent() @@ -7285,3 +7285,6 @@ Video Disk Recorder Revision History priority threads may want to use this instead of the calls to SetPriority(19) and SetIOPriority(7). The priority of a thread ("low" or "high") is now logged when the thread starts. +- Changed DTV_DVBT2_PLP_ID to DTV_STREAM_ID in dvbdevice.c to adapt to an incompatible + change in DVB API 5.8 (reported by Derek Kelly). + Removed the meanwhile obsolete definition of FE_CAN_TURBO_FEC. diff --git a/dvbdevice.c b/dvbdevice.c index a7635b23..0ea7a2e3 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 2.72 2012/09/22 11:53:57 kls Exp $ + * $Id: dvbdevice.c 2.73 2012/10/04 12:44:13 kls Exp $ */ #include "dvbdevice.h" @@ -21,7 +21,9 @@ #include "menuitems.h" #include "sourceparams.h" -#define FE_CAN_TURBO_FEC 0x8000000 // TODO: remove this once it is defined in the driver +#if (DVB_API_VERSION << 8 | DVB_API_VERSION_MINOR) < 0x0508 +#define DTV_STREAM_ID DTV_DVBT2_PLP_ID +#endif #define DVBS_TUNE_TIMEOUT 9000 //ms #define DVBS_LOCK_TIMEOUT 2000 //ms @@ -810,7 +812,7 @@ bool cDvbTuner::SetFrontend(void) SETCMD(DTV_HIERARCHY, dtp.Hierarchy()); if (frontendType == SYS_DVBT2) { // DVB-T2 - SETCMD(DTV_DVBT2_PLP_ID, dtp.PlpId()); + SETCMD(DTV_STREAM_ID, dtp.PlpId()); } tuneTimeout = DVBT_TUNE_TIMEOUT; |