Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2013-01-24 15:05:00 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-01-25 12:58:00 (GMT)
commit1c74c065e73654f4e3564e81e614b800d7a1bef2 (patch)
tree5c97dac17a21e92052033614396737932f20e0c3
parent7086f85f0aada59388f77e2fc746690f03bbbddd (diff)
Do not initialize video sink (videoscale, videoconvert, autovideosink, etc)
This was causing some problems on performance to reproduce .ogv Video streams on XO-4. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--player.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/player.py b/player.py
index 4140033..51b6af7 100644
--- a/player.py
+++ b/player.py
@@ -80,7 +80,6 @@ class GstPlayer(GObject.GObject):
videowidget.realize()
self.videowidget = videowidget
self.videowidget_xid = videowidget.get_window().get_xid()
- self._init_video_sink()
def __on_error_message(self, bus, msg):
self.stop()
@@ -103,29 +102,6 @@ class GstPlayer(GObject.GObject):
logging.debug('### Setting URI: %s', uri)
self.player.set_property('uri', uri)
- def _init_video_sink(self):
- self.bin = Gst.Bin()
- videoscale = Gst.ElementFactory.make('videoscale', 'videoscale')
- self.bin.add(videoscale)
- pad = videoscale.get_static_pad("sink")
- ghostpad = Gst.GhostPad.new("sink", pad)
- self.bin.add_pad(ghostpad)
- videoscale.set_property("method", 0)
-
- textoverlay = Gst.ElementFactory.make('textoverlay', 'textoverlay')
- self.overlay = textoverlay
- self.bin.add(textoverlay)
- conv = Gst.ElementFactory.make("videoconvert", "conv")
- self.bin.add(conv)
- videosink = Gst.ElementFactory.make('autovideosink', 'autovideosink')
- self.bin.add(videosink)
-
- videoscale.link(textoverlay)
- textoverlay.link(conv)
- conv.link(videosink)
-
- self.player.set_property("video-sink", self.bin)
-
def set_overlay(self, title, artist, album):
text = "%s\n%s" % (title, artist)
if album and len(album):