Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-09-14 13:28:10 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-10-15 19:24:38 (GMT)
commita8a8ee9d43f23c7318038f02805b99a48d5e4423 (patch)
tree43fe26592b1b2d083cd5f48666e8b03c46d147b3
parent2a73e7bf257c1629f5d12a4f71947495f811f185 (diff)
Use 'playbin2' instead of 'playbin'
'playbin' is obsolete and not should be used. I was told in #gstreamer (irc.freenode.net) that 'playbin' is no longer supported, that has some bugs and shouldn't be used anymore. It should be changed by 'playbin2' I had to set some flags as well to keep showing the 'vis-plugin' with 'playbin2' player. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
-rw-r--r--jukeboxactivity.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/jukeboxactivity.py b/jukeboxactivity.py
index dc439b3..30a950f 100644
--- a/jukeboxactivity.py
+++ b/jukeboxactivity.py
@@ -716,7 +716,13 @@ class GstPlayer(gobject.GObject):
self.playing = False
self.error = False
- self.player = gst.element_factory_make("playbin", "player")
+ self.player = gst.element_factory_make("playbin2", "player")
+
+ # Set the proper flags to render the vis-plugin
+ GST_PLAY_FLAG_VIS = 1 << 3
+ GST_PLAY_FLAG_TEXT = 1 << 2
+ self.player.props.flags |= GST_PLAY_FLAG_VIS
+ self.player.props.flags |= GST_PLAY_FLAG_TEXT
r = gst.registry_get_default()
l = [x for x in r.get_feature_list(gst.ElementFactory)