[vlc-commits] dvb: scan: missing increments in dvbt freq scan

Francois Cartegnie git at videolan.org
Mon May 16 14:39:50 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 12 17:53:59 2016 +0200| [2909426c0bea56e81de231d3765967333da1933d] | committer: Jean-Baptiste Kempf

dvb: scan: missing increments in dvbt freq scan

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

 modules/access/dvb/scan.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 1451495..0f9519f 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -692,7 +692,10 @@ static int Scan_Next_DVBT( const scan_parameter_t *p_params, scan_enumeration_t
         if( i >=i_band_count )
         {
             if( i_fi > band[i_band_count-1].i_max )
+            {
+                p_spectrum->i_index++;
                 return VLC_EGENERIC;
+            }
             continue;
         }
 
@@ -717,6 +720,7 @@ static int Scan_Next_DVBT( const scan_parameter_t *p_params, scan_enumeration_t
             }
 
             *pf_pos = (double)( i_current + (double)i_oi / i_offset_count ) / i_total;
+            p_spectrum->i_index++;
             return VLC_SUCCESS;
         }
     }



More information about the vlc-commits mailing list