Okay, so I suppose the real question now is why I need the gtk.gdk.threads_init().<br><br>I was experiencing freezes / crashes when I added the video sink into my DrawingArea, which I believe was due to the issue here:<br>
<a href="http://sourceforge.net/mailarchive/forum.php?thread_name=1258400785.3124.106.camel%40fancy&forum_name=gstreamer-devel">http://sourceforge.net/mailarchive/forum.php?thread_name=1258400785.3124.106.camel%40fancy&forum_name=gstreamer-devel</a><br>
<br>As you can see, the recommended solution there was to use the GDK lock, which obviously conflicts with the solution upstream have supplied. :(<br><br>Peter<br><br>
<div class="gmail_quote">2010/1/5 Josselin Mouette <span dir="ltr"><<a href="mailto:joss@debian.org" target="_blank">joss@debian.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Le jeudi 31 décembre 2009 à 20:38 +1100, Peter Ward a écrit :<br>
> Package: python-evince<br>
> Version: 2.28.0-5<br>
><br>
> I'm trying to write an application which makes use of both gstreamer<br>
> and python-evince - in order to get gstreamer to work properly, I need<br>
> to call gtk.gdk.threads_init() when importing modules.<br>
> This unexpectedly causes problems when using a evince.View widget in<br>
> presentation mode.<br>
><br>
> I have included below a short program which demonstrates the problem -<br>
> I can reproduce this bug in both my desktop and my laptop.<br>
><br>
><br>
> import gtk<br>
> gtk.gdk.threads_init() # commenting out this line makes the problem go away.<br>
<br>
Could you reply to the upstream bug report at<br>
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=606028" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=606028</a> ?<br>
Apparently the recommended code is gobject.threads_init() instead, but<br>
I’d like to be sure this solution works for you.<br>
<br>
Cheers,<br>
<font color="#888888">--<br>
.''`. Josselin Mouette<br>
: :' :<br>
`. `' “I recommend you to learn English in hope that you in<br>
`- future understand things” -- Jörg Schilling<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Peter Ward<br><a href="http://identi.ca/flowblok/" target="_blank">http://identi.ca/flowblok/</a><br><a href="http://flowblok.selfip.net:8001/" target="_blank">http://flowblok.selfip.net:8001/</a><br>