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
71e0080e
Commit
71e0080e
authored
Nov 10, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: poll signal strength and noise ratio every so often
parent
e84ae528
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/access/dtv/access.c
modules/access/dtv/access.c
+9
-0
No files found.
modules/access/dtv/access.c
View file @
71e0080e
...
...
@@ -26,6 +26,7 @@
#include <vlc_common.h>
#include <vlc_access.h>
#include <vlc_input.h>
#include <vlc_plugin.h>
#include <vlc_dialog.h>
#include <search.h>
...
...
@@ -394,6 +395,7 @@ vlc_module_end ()
struct
access_sys_t
{
dvb_device_t
*
dev
;
uint8_t
signal_poll
;
};
typedef
struct
delsys
...
...
@@ -429,6 +431,7 @@ static int Open (vlc_object_t *obj)
}
sys
->
dev
=
dev
;
sys
->
signal_poll
=
0
;
access
->
p_sys
=
sys
;
uint64_t
freq
=
var_InheritFrequency
(
obj
);
...
...
@@ -490,6 +493,12 @@ static block_t *Read (access_t *access)
}
block
->
i_buffer
=
val
;
/* Fetch the signal levels every so often. Some devices do not like this
* to be requested too frequently, e.g. due to low bandwidth I²C bus. */
if
((
sys
->
signal_poll
++
)
==
0
)
access
->
info
.
i_update
|=
INPUT_UPDATE_SIGNAL
;
return
block
;
}
...
...
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