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
a4504ffb
Commit
a4504ffb
authored
Jan 26, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: only fetch aout stats if used
parent
f19a7b9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/input/decoder.c
src/input/decoder.c
+11
-9
No files found.
src/input/decoder.c
View file @
a4504ffb
...
...
@@ -1106,7 +1106,6 @@ static int DecoderPlayAudio( decoder_t *p_dec, block_t *p_audio,
if
(
aout_DecPlay
(
p_aout
,
p_audio
,
i_rate
)
==
0
)
*
pi_played_sum
+=
1
;
*
pi_lost_sum
+=
aout_DecGetResetLost
(
p_aout
);
return
0
;
}
...
...
@@ -1117,14 +1116,17 @@ static void DecoderUpdateStatAudio( decoder_t *p_dec, int i_decoded,
input_thread_t
*
p_input
=
p_owner
->
p_input
;
/* Update ugly stat */
if
(
p_input
!=
NULL
&&
(
i_decoded
>
0
||
i_lost
>
0
||
i_played
>
0
)
)
{
if
(
p_input
==
NULL
)
return
;
if
(
p_owner
->
p_aout
!=
NULL
)
i_lost
+=
aout_DecGetResetLost
(
p_owner
->
p_aout
);
vlc_mutex_lock
(
&
p_input
->
p
->
counters
.
counters_lock
);
stats_Update
(
p_input
->
p
->
counters
.
p_lost_abuffers
,
i_lost
,
NULL
);
stats_Update
(
p_input
->
p
->
counters
.
p_played_abuffers
,
i_played
,
NULL
);
stats_Update
(
p_input
->
p
->
counters
.
p_decoded_audio
,
i_decoded
,
NULL
);
vlc_mutex_unlock
(
&
p_input
->
p
->
counters
.
counters_lock
);
}
}
static
int
DecoderQueueAudio
(
decoder_t
*
p_dec
,
block_t
*
p_aout_buf
)
...
...
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