diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-16 12:53:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-16 12:53:38 +0100 |
commit | f1b0011a101eed6f4b475c4077f79b0c2af8d019 (patch) | |
tree | 64201a9c0353f54636b48fa2a21f48a5a28acf4d | |
parent | 41f185b000d17b3b6ffddbe8e0a738869a92260f (diff) | |
download | vdr-f1b0011a101eed6f4b475c4077f79b0c2af8d019.tar.gz vdr-f1b0011a101eed6f4b475c4077f79b0c2af8d019.tar.bz2 |
Improved the way DVB_API_VERSION is checked
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dvbdevice.c | 4 | ||||
-rw-r--r-- | dvbdevice.h | 4 |
3 files changed, 5 insertions, 4 deletions
@@ -6843,3 +6843,4 @@ Video Disk Recorder Revision History This change actually broke handling symbolic links (see http://www.vdr-portal.de/board1-news/board2-vdr-news/p1047199-announce-vdr-developer-version-1-7-23/#post1047199). - Fixed a high load in case a transponder can't be received. +- Improved the way DVB_API_VERSION is checked. diff --git a/dvbdevice.c b/dvbdevice.c index fa7306b1..7a6c7508 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.57 2012/01/16 12:43:33 kls Exp $ + * $Id: dvbdevice.c 2.58 2012/01/16 12:52:01 kls Exp $ */ #include "dvbdevice.h" @@ -1130,7 +1130,7 @@ bool cDvbDevice::QueryDeliverySystems(int fd_frontend) LOG_ERROR; return false; } -#if DVB_API_VERSION > 5 || DVB_API_VERSION_MINOR >= 5 +#if (DVB_API_VERSION << 8 | DVB_API_VERSION_MINOR) >= 0x0505 dtv_property Frontend[1]; memset(&Frontend, 0, sizeof(Frontend)); dtv_properties CmdSeq; diff --git a/dvbdevice.h b/dvbdevice.h index 96dfa421..b8e0e2df 100644 --- a/dvbdevice.h +++ b/dvbdevice.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.h 2.21 2012/01/13 11:32:45 kls Exp $ + * $Id: dvbdevice.h 2.22 2012/01/16 12:51:39 kls Exp $ */ #ifndef __DVBDEVICE_H @@ -14,7 +14,7 @@ #include <linux/dvb/version.h> #include "device.h" -#if DVB_API_VERSION < 5 || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR < 3) +#if (DVB_API_VERSION << 8 | DVB_API_VERSION_MINOR) < 0x0503 #error VDR requires Linux DVB driver API version 5.3 or higher! #endif |