git.slaskete.net
/
python-gstreamer-examples
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use GTK3 GObject instead of GTK2 gobject
[python-gstreamer-examples]
/
example1.py
diff --git
a/example1.py
b/example1.py
index c2e6e6e216f21a75d0c74e22844d2cfa2769500a..3d944bad1c15fd039b8e7696331da2a3a1c88799 100755
(executable)
--- a/
example1.py
+++ b/
example1.py
@@
-7,8
+7,7
@@
# Info on porting python scripts to Gstreamer 1.0 can be found here:
# https://wiki.ubuntu.com/Novacut/GStreamer1.0
# Info on porting python scripts to Gstreamer 1.0 can be found here:
# https://wiki.ubuntu.com/Novacut/GStreamer1.0
-from gi.repository import Gst
-import gobject
+from gi.repository import Gst, GObject
class Main:
def __init__(self):
class Main:
def __init__(self):
@@
-32,5
+31,5
@@
class Main:
# Create the pipelie and enter main loop, quit with ctrl+c
start = Main()
# Create the pipelie and enter main loop, quit with ctrl+c
start = Main()
-mainloop =
go
bject.MainLoop()
+mainloop =
GO
bject.MainLoop()
mainloop.run()
mainloop.run()