minor cleanup
authorJohan Dahlin <johan@gnome.org>
Mon, 24 May 2004 10:15:39 +0000 (10:15 +0000)
committerJohan Dahlin <johan@gnome.org>
Mon, 24 May 2004 10:15:39 +0000 (10:15 +0000)
Original commit message from CVS:
minor cleanup

common
examples/gst/bps.py

diff --git a/common b/common
index 95ba883..85747ad 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 95ba8839c03a7f8939a2ae4b0586b012e929fc84
+Subproject commit 85747ad7d18dfc697845a457631f3877fda46906
index e7e6f33..f608fba 100755 (executable)
 # Author: David I. Lehn <dlehn@users.sourceforge.net>
 #
 
+import pygtk
+pygtk.require('2.0')
+
 import sys
 import time
 import gobject
-import gst
 import gtk
+import gst
 
 class BPS(object):
     def __init__(self):
@@ -87,15 +90,12 @@ class BPS(object):
                 pass
         elif method == 'c':
             self.start = time.time()
-            self.iter_id = gst.add_iterate_bin(self.pipeline)
+            gobject.idle_add(self.pipeline.iterate)
             gst.main()
         #elif method == 'gst':
         #    self.start = time.time()
         #    gtk.idle_add(self.idle, self.pipeline)
         #    gtk.main()
-        elif method == 'all':
-            self.start = time.time()
-            iterate_bin_all(self.pipeline)
 
         self.pipeline.set_state(gst.STATE_NULL)