Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
444
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
b770c640
Commit
b770c640
authored
1 year ago
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
input: don't lock to write stats if there are none
parent
da1c3a13
No related branches found
Branches containing commit
No related tags found
1 merge request
!3326
input: don't lock to write stats if there are none
Pipeline
#317075
passed with stages
Stage:
Stage:
in 43 minutes and 56 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/input/input.c
+8
-7
8 additions, 7 deletions
src/input/input.c
with
8 additions
and
7 deletions
src/input/input.c
+
8
−
7
View file @
b770c640
...
...
@@ -594,16 +594,17 @@ static void MainLoopStatistics( input_thread_t *p_input )
es_out_SetTimes
(
priv
->
p_es_out
,
f_position
,
i_time
,
priv
->
normal_time
,
i_length
);
struct
input_stats_t
new_stats
;
if
(
priv
->
stats
!=
NULL
)
input_stats_Compute
(
priv
->
stats
,
&
new_stats
);
if
(
priv
->
stats
!=
NULL
)
{
struct
input_stats_t
new_stats
;
input_stats_Compute
(
priv
->
stats
,
&
new_stats
);
vlc_mutex_lock
(
&
priv
->
p_item
->
lock
);
if
(
priv
->
stats
!=
NULL
)
vlc_mutex_lock
(
&
priv
->
p_item
->
lock
);
*
priv
->
p_item
->
p_stats
=
new_stats
;
vlc_mutex_unlock
(
&
priv
->
p_item
->
lock
);
vlc_mutex_unlock
(
&
priv
->
p_item
->
lock
);
input_SendEventStatistics
(
p_input
,
&
new_stats
);
input_SendEventStatistics
(
p_input
,
&
new_stats
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment