[vlc-commits] commit: Added a missing vlc_join() in vout. (Laurent Aimar )

git at videolan.org git at videolan.org
Sun Jun 6 13:53:47 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jun  4 00:38:32 2010 +0200| [46048d0de4da970267ccaad70c51a56003e30e08] | committer: Laurent Aimar 

Added a missing vlc_join() in vout.

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

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

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 1c1d3f4..43062f7 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -546,8 +546,7 @@ static void VoutDisplayEventMouse(vout_display_t *vd, int event, va_list args)
 
 static void *VoutDisplayEventKeyDispatch(void *data)
 {
-    vout_display_t *vd = data;
-    vout_display_owner_sys_t *osys = vd->owner.sys;
+    vout_display_owner_sys_t *osys = data;
 
     for (;;) {
         block_t *event = block_FifoGet(osys->event.fifo);
@@ -572,7 +571,7 @@ static void VoutDisplayEventKey(vout_display_t *vd, int key)
         if (!osys->event.fifo)
             return;
         if (vlc_clone(&osys->event.thread, VoutDisplayEventKeyDispatch,
-                      vd, VLC_THREAD_PRIORITY_LOW)) {
+                      osys, VLC_THREAD_PRIORITY_LOW)) {
             block_FifoRelease(osys->event.fifo);
             osys->event.fifo = NULL;
             return;
@@ -1281,6 +1280,7 @@ void vout_DeleteDisplay(vout_display_t *vd, vout_display_state_t *state)
     vout_display_Delete(vd);
     if (osys->event.fifo) {
         vlc_cancel(osys->event.thread);
+        vlc_join(osys->event.thread, NULL);
         block_FifoRelease(osys->event.fifo);
     }
     vlc_mutex_destroy(&osys->lock);



More information about the vlc-commits mailing list