Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
cbe863f7
Commit
cbe863f7
authored
Apr 26, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent a 0 division when invalid frequency step is reported by dvb.
parent
6f74730c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/access/dvb/linux_dvb.c
modules/access/dvb/linux_dvb.c
+2
-2
No files found.
modules/access/dvb/linux_dvb.c
View file @
cbe863f7
...
...
@@ -414,7 +414,7 @@ static int ScanParametersDvbC( access_t *p_access, scan_parameter_t *p_scan )
/* */
p_scan
->
frequency
.
i_min
=
p_frontend
->
info
.
frequency_min
;
p_scan
->
frequency
.
i_max
=
p_frontend
->
info
.
frequency_max
;
p_scan
->
frequency
.
i_step
=
p_frontend
->
info
.
frequency_stepsize
;
p_scan
->
frequency
.
i_step
=
p_frontend
->
info
.
frequency_stepsize
?:
166667
;
p_scan
->
frequency
.
i_count
=
(
p_scan
->
frequency
.
i_max
-
p_scan
->
frequency
.
i_min
)
/
p_scan
->
frequency
.
i_step
;
/* */
...
...
@@ -436,7 +436,7 @@ static int ScanParametersDvbT( access_t *p_access, scan_parameter_t *p_scan )
/* */
p_scan
->
frequency
.
i_min
=
p_frontend
->
info
.
frequency_min
;
p_scan
->
frequency
.
i_max
=
p_frontend
->
info
.
frequency_max
;
p_scan
->
frequency
.
i_step
=
p_frontend
->
info
.
frequency_stepsize
;
p_scan
->
frequency
.
i_step
=
p_frontend
->
info
.
frequency_stepsize
?:
166667
;
p_scan
->
frequency
.
i_count
=
(
p_scan
->
frequency
.
i_max
-
p_scan
->
frequency
.
i_min
)
/
p_scan
->
frequency
.
i_step
;
/* */
...
...
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