diff --git a/common b/common index 95ba8839c0..85747ad7d1 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 95ba8839c03a7f8939a2ae4b0586b012e929fc84 +Subproject commit 85747ad7d18dfc697845a457631f3877fda46906 diff --git a/examples/gst/bps.py b/examples/gst/bps.py index e7e6f33f9c..f608fba065 100755 --- a/examples/gst/bps.py +++ b/examples/gst/bps.py @@ -21,11 +21,14 @@ # Author: David I. Lehn # +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)