diff --git a/gst/__init__.py b/gst/__init__.py index 2d66109e58..358110ce7e 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -36,3 +36,7 @@ sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL) del devloc, sys, os from _gstreamer import * + +def threads_init(): + import gtk + gtk.threads_init() diff --git a/gstreamer/__init__.py b/gstreamer/__init__.py index 2d66109e58..358110ce7e 100644 --- a/gstreamer/__init__.py +++ b/gstreamer/__init__.py @@ -36,3 +36,7 @@ sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL) del devloc, sys, os from _gstreamer import * + +def threads_init(): + import gtk + gtk.threads_init()