Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
4832631e
Commit
4832631e
authored
Oct 08, 2008
by
Laurent Aimar
Browse files
Fixed a potential deadlock.
parent
e5ed591a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/input/decoder.c
View file @
4832631e
...
...
@@ -394,8 +394,8 @@ void input_DecoderDecode( decoder_t * p_dec, block_t *p_block )
bool
input_DecoderIsEmpty
(
decoder_t
*
p_dec
)
{
/* FIXME it is buggy if the decoder is
buffering
FIXME
* -> "deadlock" */
assert
(
!
p_dec
->
p_owner
->
b_
buffering
);
if
(
p_dec
->
p_owner
->
b_own_thread
&&
block_FifoCount
(
p_dec
->
p_owner
->
p_fifo
)
>
0
)
{
...
...
src/input/es_out.c
View file @
4832631e
...
...
@@ -1737,7 +1737,7 @@ static void EsOutDel( es_out_t *out, es_out_id_t *es )
/* We don't try to reselect */
if
(
es
->
p_dec
)
{
while
(
!
out
->
p_sys
->
p_input
->
b_die
&&
es
->
p_dec
)
while
(
!
p_sys
->
p_input
->
b_die
&&
!
p_sys
->
b_buffering
&&
es
->
p_dec
)
{
if
(
input_DecoderIsEmpty
(
es
->
p_dec
)
&&
(
!
es
->
p_dec_record
||
input_DecoderIsEmpty
(
es
->
p_dec_record
)
))
...
...
Write
Preview
Supports
Markdown
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