[vlc-commits] dvb: change position to move along when iterating modulations/symbolrates
Ilkka Ollakka
git at videolan.org
Thu Mar 10 12:33:15 CET 2011
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Mar 10 13:00:22 2011 +0200| [cb9b3dfc92a1f20c16a75b46acb645e60d8abd91] | committer: Ilkka Ollakka
dvb: change position to move along when iterating modulations/symbolrates
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb9b3dfc92a1f20c16a75b46acb645e60d8abd91
---
modules/access/dvb/scan.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index b23142f..fe60a21 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -384,7 +384,10 @@ static int ScanDvbCNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
if( p_scan->i_index < num_frequencies )
{
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_EGENERIC;
More information about the vlc-commits
mailing list