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
93d4bf96
Commit
93d4bf96
authored
Sep 03, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: measure time from start (refs #7400)
parent
c21bc6b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/access/alsa.c
modules/access/alsa.c
+3
-1
No files found.
modules/access/alsa.c
View file @
93d4bf96
...
@@ -128,6 +128,7 @@ struct demux_sys_t
...
@@ -128,6 +128,7 @@ struct demux_sys_t
es_out_id_t
*
es
;
es_out_id_t
*
es
;
vlc_thread_t
thread
;
vlc_thread_t
thread
;
mtime_t
start
;
mtime_t
caching
;
mtime_t
caching
;
snd_pcm_uframes_t
period_size
;
snd_pcm_uframes_t
period_size
;
unsigned
rate
;
unsigned
rate
;
...
@@ -224,7 +225,7 @@ static int Control (demux_t *demux, int query, va_list ap)
...
@@ -224,7 +225,7 @@ static int Control (demux_t *demux, int query, va_list ap)
switch
(
query
)
switch
(
query
)
{
{
case
DEMUX_GET_TIME
:
case
DEMUX_GET_TIME
:
*
va_arg
(
ap
,
int64_t
*
)
=
mdate
()
;
*
va_arg
(
ap
,
int64_t
*
)
=
mdate
()
-
sys
->
start
;
break
;
break
;
case
DEMUX_GET_PTS_DELAY
:
case
DEMUX_GET_PTS_DELAY
:
...
@@ -442,6 +443,7 @@ static int Open (vlc_object_t *obj)
...
@@ -442,6 +443,7 @@ static int Open (vlc_object_t *obj)
fmt
.
audio
.
i_rate
=
param
;
fmt
.
audio
.
i_rate
=
param
;
sys
->
rate
=
param
;
sys
->
rate
=
param
;
sys
->
start
=
mdate
();
sys
->
caching
=
INT64_C
(
1000
)
*
var_InheritInteger
(
demux
,
"live-caching"
);
sys
->
caching
=
INT64_C
(
1000
)
*
var_InheritInteger
(
demux
,
"live-caching"
);
param
=
sys
->
caching
;
param
=
sys
->
caching
;
val
=
snd_pcm_hw_params_set_buffer_time_near
(
pcm
,
hw
,
&
param
,
NULL
);
val
=
snd_pcm_hw_params_set_buffer_time_near
(
pcm
,
hw
,
&
param
,
NULL
);
...
...
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