Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
daa556bc
Commit
daa556bc
authored
Apr 30, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
At input EOF, wait for all pictures to be displayed.
parent
7d55fdfc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
src/input/decoder.c
src/input/decoder.c
+12
-3
src/video_output/video_output.c
src/video_output/video_output.c
+13
-0
src/video_output/vout_control.h
src/video_output/vout_control.h
+5
-0
No files found.
src/input/decoder.c
View file @
daa556bc
...
...
@@ -388,10 +388,19 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block, bool b_do_pace )
bool
input_DecoderIsEmpty
(
decoder_t
*
p_dec
)
{
assert
(
!
p_dec
->
p_owner
->
b_buffering
);
decoder_owner_sys_t
*
p_owner
=
p_dec
->
p_owner
;
assert
(
!
p_owner
->
b_buffering
);
/* FIXME that's not really true */
return
block_FifoCount
(
p_dec
->
p_owner
->
p_fifo
)
<=
0
;
bool
b_empty
=
block_FifoCount
(
p_dec
->
p_owner
->
p_fifo
)
<=
0
;
if
(
b_empty
)
{
vlc_mutex_lock
(
&
p_owner
->
lock
);
/* TODO audio support */
if
(
p_dec
->
fmt_out
.
i_cat
==
VIDEO_ES
&&
p_owner
->
p_vout
)
b_empty
=
vout_IsEmpty
(
p_owner
->
p_vout
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
}
return
b_empty
;
}
void
input_DecoderIsCcPresent
(
decoder_t
*
p_dec
,
bool
pb_present
[
4
]
)
...
...
src/video_output/video_output.c
View file @
daa556bc
...
...
@@ -513,6 +513,19 @@ void vout_Reset(vout_thread_t *vout)
vout_control_WaitEmpty
(
&
vout
->
p
->
control
);
}
bool
vout_IsEmpty
(
vout_thread_t
*
vout
)
{
vlc_mutex_lock
(
&
vout
->
p
->
picture_lock
);
picture_t
*
picture
=
picture_fifo_Peek
(
vout
->
p
->
decoder_fifo
);
if
(
picture
)
picture_Release
(
picture
);
vlc_mutex_unlock
(
&
vout
->
p
->
picture_lock
);
return
!
picture
;
}
void
vout_FixLeaks
(
vout_thread_t
*
vout
)
{
vlc_mutex_lock
(
&
vout
->
p
->
picture_lock
);
...
...
src/video_output/vout_control.h
View file @
daa556bc
...
...
@@ -75,5 +75,10 @@ void vout_NextPicture( vout_thread_t *p_vout, mtime_t *pi_duration );
*/
void
vout_DisplayTitle
(
vout_thread_t
*
p_vout
,
const
char
*
psz_title
);
/**
* This function will return true if no more pictures are to be displayed.
*/
bool
vout_IsEmpty
(
vout_thread_t
*
p_vout
);
#endif
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