[vlc-commits] input: don't send event from functions

Thomas Guillem git at videolan.org
Mon Sep 3 17:05:51 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Aug 31 17:03:19 2018 +0200| [48af47f5fb23fd461ed73f4ddf25b6783c2d17f7] | committer: Thomas Guillem

input: don't send event from functions

Returning en error is enough.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48af47f5fb23fd461ed73f4ddf25b6783c2d17f7
---

 src/input/input.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index 72389d8ea3..c76064107c 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -189,7 +189,6 @@ int input_Start( input_thread_t *p_input )
                                    VLC_THREAD_PRIORITY_INPUT );
     if( !priv->is_running )
     {
-        input_ChangeState( p_input, ERROR_S );
         msg_Err( p_input, "cannot create input thread" );
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list