[vlc-commits] DVB: fix turbo FEC check
Rémi Denis-Courmont
git at videolan.org
Sat Mar 5 17:59:59 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 5 18:59:20 2011 +0200| [c795a13b7be0d0354e1973874f40e97bc758a1a5] | committer: Rémi Denis-Courmont
DVB: fix turbo FEC check
Frontend features are in an enum, so ifdef does not work.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c795a13b7be0d0354e1973874f40e97bc758a1a5
---
modules/access/dvb/linux_dvb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/access/dvb/linux_dvb.c b/modules/access/dvb/linux_dvb.c
index 3fd1994..c26eb83 100644
--- a/modules/access/dvb/linux_dvb.c
+++ b/modules/access/dvb/linux_dvb.c
@@ -731,7 +731,8 @@ static int FrontendInfo( access_t *p_access )
if( p_frontend->info.caps & FE_HAS_EXTENDED_CAPS)
msg_Dbg(p_access, " 8-level VSB modulation");
/* 3 capabilities that don't exist yet HERE */
-#ifdef FE_CAN_TURBO_FEC
+#if (DVB_API_VERSION > 5) \
+ || ((DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 2))
if( p_frontend->info.caps & FE_CAN_TURBO_FEC)
msg_Dbg(p_access, " Turbo FEC modulation");
#else
More information about the vlc-commits
mailing list