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
41bacf4a
Commit
41bacf4a
authored
Oct 07, 2008
by
Laurent Aimar
Browse files
Protect a few whiles againts possible broken decoder.
parent
aa4b4371
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/decoder.c
View file @
41bacf4a
...
@@ -339,7 +339,7 @@ void input_DecoderDecode( decoder_t * p_dec, block_t *p_block )
...
@@ -339,7 +339,7 @@ void input_DecoderDecode( decoder_t * p_dec, block_t *p_block )
if
(
p_owner
->
p_input
->
p
->
b_out_pace_control
)
if
(
p_owner
->
p_input
->
p
->
b_out_pace_control
)
{
{
/* FIXME !!!!! */
/* FIXME !!!!! */
while
(
!
p_dec
->
b_die
&&
!
p_dec
->
b_error
&&
while
(
vlc_object_alive
(
p_dec
)
&&
!
p_dec
->
b_error
&&
block_FifoCount
(
p_owner
->
p_fifo
)
>
10
)
block_FifoCount
(
p_owner
->
p_fifo
)
>
10
)
{
{
msleep
(
1000
);
msleep
(
1000
);
...
@@ -724,7 +724,7 @@ static void DecoderFlush( decoder_t *p_dec )
...
@@ -724,7 +724,7 @@ static void DecoderFlush( decoder_t *p_dec )
/* */
/* */
if
(
p_owner
->
b_own_thread
)
if
(
p_owner
->
b_own_thread
)
{
{
while
(
p_owner
->
b_flushing
)
while
(
vlc_object_alive
(
p_dec
)
&&
p_owner
->
b_flushing
)
vlc_cond_wait
(
&
p_owner
->
wait
,
&
p_owner
->
lock
);
vlc_cond_wait
(
&
p_owner
->
wait
,
&
p_owner
->
lock
);
}
}
}
}
...
...
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