[vlc-commits] Properly disable ISDB-T code with Linux DVB 5.0

Rémi Denis-Courmont git at videolan.org
Thu Sep 29 18:38:34 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 29 18:54:47 2011 +0300| [7912249c1d33dc00be85507a76e937c8f4c17d2e] | committer: Rémi Denis-Courmont

Properly disable ISDB-T code with Linux DVB 5.0

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7912249c1d33dc00be85507a76e937c8f4c17d2e
---

 modules/access/dtv/linux.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 7d26e8a..dc273a5 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -929,6 +929,7 @@ int dvb_set_isdbs (dvb_device_t *d, uint64_t freq_Hz, uint16_t ts_id)
 
 
 /*** ISDB-T ***/
+#if DVBv5(1)
 static int dvb_set_isdbt_layer (dvb_device_t *d, unsigned num,
                                 const isdbt_layer_t *l)
 {
@@ -945,6 +946,7 @@ static int dvb_set_isdbt_layer (dvb_device_t *d, unsigned num,
                           DTV_ISDBT_LAYERA_SEGMENT_COUNT + num, count,
                           DTV_ISDBT_LAYERA_TIME_INTERLEAVING + num, ti);
 }
+#endif
 
 int dvb_set_isdbt (dvb_device_t *d, uint32_t freq, uint32_t bandwidth,
                    int transmit_mode, uint32_t guard,
@@ -967,6 +969,10 @@ int dvb_set_isdbt (dvb_device_t *d, uint32_t freq, uint32_t bandwidth,
     return 0;
 #else
 # warning ISDB-T needs Linux DVB version 5.1 or later.
+    msg_Err (d->obj, "ISDB-T support not compiled-in");
+    (void) freq; (void) bandwidth; (void) transmit_mode; (void) guard;
+    (void) layers;
+    return -1;
 #endif
 }
 



More information about the vlc-commits mailing list