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
7a15955a
Commit
7a15955a
authored
May 10, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SNR and signal level for access_demux
In particular, V4L is (usually) an access_demux rather than an access.
parent
77a137de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
include/vlc_demux.h
include/vlc_demux.h
+2
-0
src/input/input.c
src/input/input.c
+12
-0
No files found.
include/vlc_demux.h
View file @
7a15955a
...
...
@@ -159,6 +159,8 @@ enum demux_query_e
DEMUX_SET_RATE
,
/* arg1= int*pi_rate can fail */
DEMUX_CAN_SEEK
,
/* arg1= bool* can fail (assume false)*/
DEMUX_GET_SIGNAL
,
/* arg1= double * arg2= double * can fail */
};
VLC_API
int
demux_vaControlHelper
(
stream_t
*
,
int64_t
i_start
,
int64_t
i_end
,
int64_t
i_bitrate
,
int
i_align
,
int
i_query
,
va_list
args
);
...
...
src/input/input.c
View file @
7a15955a
...
...
@@ -2253,6 +2253,18 @@ static void UpdateGenericFromDemux( input_thread_t *p_input )
}
p_demux
->
info
.
i_update
&=
~
INPUT_UPDATE_META
;
}
if
(
p_demux
->
info
.
i_update
&
INPUT_UPDATE_SIGNAL
)
{
double
quality
;
double
strength
;
if
(
demux_Control
(
p_demux
,
DEMUX_GET_SIGNAL
,
&
quality
,
&
strength
)
)
quality
=
strength
=
-
1
.;
input_SendEventSignal
(
p_input
,
quality
,
strength
);
p_demux
->
info
.
i_update
&=
~
INPUT_UPDATE_SIGNAL
;
}
p_demux
->
info
.
i_update
&=
~
INPUT_UPDATE_SIZE
;
}
...
...
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