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
2e29d68c
Commit
2e29d68c
authored
Jul 04, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: count dropped video at decoder level
parent
8e51b8da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/input/decoder.c
src/input/decoder.c
+5
-0
No files found.
src/input/decoder.c
View file @
2e29d68c
...
@@ -934,9 +934,11 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
...
@@ -934,9 +934,11 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
int
i_lost
=
0
;
int
i_lost
=
0
;
int
i_decoded
=
0
;
int
i_decoded
=
0
;
int
i_displayed
=
0
;
int
i_displayed
=
0
;
bool
b_lost
=
!!
p_block
;
while
(
(
p_pic
=
p_dec
->
pf_decode_video
(
p_dec
,
&
p_block
))
)
while
(
(
p_pic
=
p_dec
->
pf_decode_video
(
p_dec
,
&
p_block
))
)
{
{
b_lost
=
false
;
vout_thread_t
*
p_vout
=
p_owner
->
p_vout
;
vout_thread_t
*
p_vout
=
p_owner
->
p_vout
;
if
(
DecoderIsFlushing
(
p_dec
)
)
if
(
DecoderIsFlushing
(
p_dec
)
)
{
/* It prevent freezing VLC in case of broken decoder */
{
/* It prevent freezing VLC in case of broken decoder */
...
@@ -970,6 +972,9 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
...
@@ -970,6 +972,9 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
DecoderPlayVideo
(
p_dec
,
p_pic
,
&
i_displayed
,
&
i_lost
);
DecoderPlayVideo
(
p_dec
,
p_pic
,
&
i_displayed
,
&
i_lost
);
}
}
if
(
b_lost
)
i_lost
++
;
/* Update ugly stat */
/* Update ugly stat */
input_thread_t
*
p_input
=
p_owner
->
p_input
;
input_thread_t
*
p_input
=
p_owner
->
p_input
;
...
...
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