[vlc-devel] commit: Fix potential crash on Windows (assumed) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 31 17:41:46 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 31 18:41:16 2009 +0200| [e6e659455d53a52ce438bb8cebf6ceb9174b2416] | committer: Rémi Denis-Courmont 

Fix potential crash on Windows (assumed)

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

 src/video_output/window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/video_output/window.c b/src/video_output/window.c
index 7fb6614..87e9a13 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -83,6 +83,8 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
             vlc_inhibit_Set (w->inhibit, true);
             /* FIXME: ^ wait for vout activation, pause */
     }
+    else
+        w->inhibit = NULL;
     return window;
 }
 




More information about the vlc-devel mailing list