[vlc-devel] commit: Small code factorization ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 17 12:19:53 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Aug 17 13:11:54 2008 +0300| [c8ef90d56e90e3f8a7b4415fca060f4b7eddc593] | committer: Rémi Denis-Courmont
Small code factorization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8ef90d56e90e3f8a7b4415fca060f4b7eddc593
---
src/input/input_internal.h | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index a47072e..2b329ae 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -206,14 +206,13 @@ static inline void input_ControlPush( input_thread_t *p_input,
memset( &p_input->p->control[0].val, 0, sizeof( vlc_value_t ) );
}
else
+ if( p_input->p->i_control >= INPUT_CONTROL_FIFO_SIZE )
+ {
+ msg_Err( p_input, "input control fifo overflow, trashing type=%d",
+ i_type );
+ }
+ else
{
- if( p_input->p->i_control >= INPUT_CONTROL_FIFO_SIZE )
- {
- msg_Err( p_input, "input control fifo overflow, trashing type=%d",
- i_type );
- vlc_mutex_unlock( &p_input->p->lock_control );
- return;
- }
p_input->p->control[p_input->p->i_control].i_type = i_type;
if( p_val )
p_input->p->control[p_input->p->i_control].val = *p_val;
More information about the vlc-devel
mailing list