mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
minor cleanup
Original commit message from CVS: minor cleanup
This commit is contained in:
parent
45c2cf641d
commit
06761336fe
2 changed files with 6 additions and 6 deletions
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 95ba8839c03a7f8939a2ae4b0586b012e929fc84
|
Subproject commit 85747ad7d18dfc697845a457631f3877fda46906
|
|
@ -21,11 +21,14 @@
|
||||||
# Author: David I. Lehn <dlehn@users.sourceforge.net>
|
# Author: David I. Lehn <dlehn@users.sourceforge.net>
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import pygtk
|
||||||
|
pygtk.require('2.0')
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import gobject
|
import gobject
|
||||||
import gst
|
|
||||||
import gtk
|
import gtk
|
||||||
|
import gst
|
||||||
|
|
||||||
class BPS(object):
|
class BPS(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -87,15 +90,12 @@ class BPS(object):
|
||||||
pass
|
pass
|
||||||
elif method == 'c':
|
elif method == 'c':
|
||||||
self.start = time.time()
|
self.start = time.time()
|
||||||
self.iter_id = gst.add_iterate_bin(self.pipeline)
|
gobject.idle_add(self.pipeline.iterate)
|
||||||
gst.main()
|
gst.main()
|
||||||
#elif method == 'gst':
|
#elif method == 'gst':
|
||||||
# self.start = time.time()
|
# self.start = time.time()
|
||||||
# gtk.idle_add(self.idle, self.pipeline)
|
# gtk.idle_add(self.idle, self.pipeline)
|
||||||
# gtk.main()
|
# gtk.main()
|
||||||
elif method == 'all':
|
|
||||||
self.start = time.time()
|
|
||||||
iterate_bin_all(self.pipeline)
|
|
||||||
|
|
||||||
self.pipeline.set_state(gst.STATE_NULL)
|
self.pipeline.set_state(gst.STATE_NULL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue