[vlc-commits] python-vlc: initialize gtk (and Xlib) threads in gtkvlc example

Olivier Aubert git at videolan.org
Mon Apr 4 21:28:03 CEST 2011


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Apr  4 21:27:46 2011 +0200| [01d3db41b702a842bc7b16f9fad41d87a6f4cb6b] | committer: Olivier Aubert

python-vlc: initialize gtk (and Xlib) threads in gtkvlc example

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

 examples/gtkvlc.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/examples/gtkvlc.py b/examples/gtkvlc.py
index 6116704..4d235e8 100755
--- a/examples/gtkvlc.py
+++ b/examples/gtkvlc.py
@@ -34,6 +34,8 @@ $Id$
 """
 
 import gtk
+gtk.gdk.threads_init()
+
 import sys
 import vlc
 



More information about the vlc-commits mailing list