[vlc-commits] dvb-c: optimize initial channelfinding if we can utilise NIT-info

Ilkka Ollakka git at videolan.org
Thu Mar 17 14:24:30 CET 2011


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Mar 17 15:12:26 2011 +0200| [eafee314d6b81fe0ce89e14e36aae49eddb3a031] | committer: Ilkka Ollakka

dvb-c: optimize initial channelfinding if we can utilise NIT-info

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

 modules/access/dvb/scan.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 1acb28b..7c0c23b 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -569,8 +569,16 @@ static int ScanDvbCNext( scan_t *p_scan, scan_configuration_t *p_cfg, double *pf
         {
             /* symbol rates from dvb-tools dvb-c files */
             static const unsigned short symbolrates[] = {
-             6900, 6875, 6950, 7000, 3450, 6111,
-             6428, 6952, 5900, 5000 };
+             6900, 6875, 6950
+             /* With DR_44 we can cover other symbolrates from NIT-info
+                as all channel-seed files have atleast one channel that
+                has one of these symbolrate
+              */
+#ifndef _DVBPSI_DR_44_H_
+             ,7000, 3450, 6111,
+             6428, 6952, 5900, 5000
+#endif
+             };
 
             enum { num_symbols = (sizeof(symbolrates)/sizeof(*symbolrates)) };
 



More information about the vlc-commits mailing list