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&amp;forum_name=gstreamer-devel">http://sourceforge.net/mailarchive/forum.php?thread_name=1258400785.3124.106.camel%40fancy&amp;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">&lt;<a href="mailto:joss@debian.org" target="_blank">joss@debian.org</a>&gt;</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>
&gt; Package: python-evince<br>
&gt; Version: 2.28.0-5<br>
&gt;<br>
&gt; I&#39;m trying to write an application which makes use of both gstreamer<br>
&gt; and python-evince - in order to get gstreamer to work properly, I need<br>
&gt; to call gtk.gdk.threads_init() when importing modules.<br>
&gt; This unexpectedly causes problems when using a evince.View widget in<br>
&gt; presentation mode.<br>
&gt;<br>
&gt; I have included below a short program which demonstrates the problem -<br>
&gt; I can reproduce this bug in both my desktop and my laptop.<br>
&gt;<br>
&gt;<br>
&gt; import gtk<br>
&gt; 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>
 .&#39;&#39;`.      Josselin Mouette<br>
: :&#39; :<br>
`. `&#39;   “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>