Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d0e62402
Commit
d0e62402
authored
Jul 31, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop a const on a static array and misc cleanup.
parent
8994bf8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
modules/access/dvb/scan.c
modules/access/dvb/scan.c
+8
-12
No files found.
modules/access/dvb/scan.c
View file @
d0e62402
...
...
@@ -146,10 +146,9 @@ void scan_Clean( scan_t *p_scan )
static
int
ScanDvbCNextFast
(
scan_t
*
p_scan
,
scan_configuration_t
*
p_cfg
,
double
*
pf_pos
)
{
msg_Dbg
(
p_scan
->
p_obj
,
"Scan index %"
PRId64
,
p_scan
->
i_index
);
/* values from dvb-scan utils frequency-files, sorted
* by how often they appear, hopefully speedups finding
* services */
static
int
frequencies
[]
=
{
/* Values taken from dvb-scan utils frequency-files, sorted by how
* often they appear. This hopefully speeds up finding services. */
static
const
unsigned
short
frequencies
[]
=
{
410
,
426
,
418
,
394
,
402
,
362
,
370
,
354
,
346
,
442
,
434
,
386
,
378
,
450
,
306
,
162
,
154
,
474
,
...
...
@@ -170,18 +169,15 @@ static int ScanDvbCNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
163
,
155
,
147
,
146
,
143
,
139
,
131
,
123
,
121
};
enum
{
num_frequencies
=
(
sizeof
(
frequencies
)
/
sizeof
(
*
frequencies
))
};
if
(
p_scan
->
i_index
<
(
sizeof
(
frequencies
)
/
sizeof
(
int
))
)
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
;
return
VLC_SUCCESS
;
}
else
{
return
VLC_EGENERIC
;
}
*
pf_pos
=
(
double
)
p_scan
->
i_index
/
(
sizeof
(
frequencies
)
/
sizeof
(
int
));
return
VLC_SUCCESS
;
return
VLC_EGENERIC
;
}
static
int
ScanDvbTNextExhaustive
(
scan_t
*
p_scan
,
scan_configuration_t
*
p_cfg
,
double
*
pf_pos
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment