Hello,
I found out that there are some thread barriers missing in the demo.py
example code, so that the demo freezes from time to time when clicking
play. See attached diff. It probably is in the other demo codes too.
Keep up the good work, especially the tutorial which is very
comprehensible!
Tomas
--- demo.py.orig 2010-01-31 02:06:59.022876482 +0100
+++ demo.py 2010-01-31 02:07:44.682688903 +0100
@@ -9,6 +9,7 @@
import pygtk
pygtk.require("2.0")
import gtk
+gtk.gdk.threads_init()
import sys
import os
@@ -50,8 +51,10 @@
# code will make the ximagesink output in the specified window
def set_xid(window):
+ gtk.gdk.threads_enter()
sink.set_xwindow_id(window.window.xid)
sink.expose()
+ gtk.gdk.threads_leave()
# this code receives the messages from the pipeline. if we
# need to set X11 id, then we call set_xid
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Pitivi-pitivi mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pitivi-pitivi