[vlc-devel] commit: Send input dead event only once. (Laurent Aimar )

git version control git at videolan.org
Mon Jan 5 21:26:48 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan  4 23:48:59 2009 +0100| [cc506211b787a6368a54cae683edd45ec43f67eb] | committer: Laurent Aimar 

Send input dead event only once.

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

 src/input/input.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 47b0d08..9a0c5bc 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -519,6 +519,9 @@ static void *Run( vlc_object_t *p_this )
     {
         /* If we failed, wait before we are killed, and exit */
         WaitDie( p_input );
+
+        /* Tell we're dead */
+        input_SendEventDead( p_input );
         goto exit;
     }
 
@@ -532,9 +535,6 @@ static void *Run( vlc_object_t *p_this )
     End( p_input );
 
 exit:
-    /* Tell we're dead */
-    input_SendEventDead( p_input );
-
     vlc_restorecancel( canc );
     return NULL;
 }




More information about the vlc-devel mailing list