Commit cb9b3dfc authored by Ilkka Ollakka's avatar Ilkka Ollakka

dvb: change position to move along when iterating modulations/symbolrates

parent d22d955d
...@@ -384,7 +384,10 @@ static int ScanDvbCNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double ...@@ -384,7 +384,10 @@ static int ScanDvbCNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
if( p_scan->i_index < num_frequencies ) if( p_scan->i_index < num_frequencies )
{ {
p_cfg->i_frequency = 1000000 * ( frequencies[ p_scan->i_index ] ); p_cfg->i_frequency = 1000000 * ( frequencies[ p_scan->i_index ] );
*pf_pos = (double)p_scan->i_index / num_frequencies; *pf_pos = (double)(p_scan->i_index * 1000 +
p_scan->parameter.i_symbolrate * 100 +
(p_scan->parameter.i_modulation >> 4) )
/ (num_frequencies * 1000 + 900 + 16);
return VLC_SUCCESS; return VLC_SUCCESS;
} }
return VLC_EGENERIC; return VLC_EGENERIC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment