[xiph-commits] r15049 - trunk/subtle

jmesquita at svn.xiph.org jmesquita at svn.xiph.org
Wed Jun 18 23:30:47 PDT 2008


Author: jmesquita
Date: 2008-06-18 23:30:46 -0700 (Wed, 18 Jun 2008)
New Revision: 15049

Modified:
   trunk/subtle/GPlayer.py
Log:
Added a few more elements to the pipeline since it got broken on new tests.


Modified: trunk/subtle/GPlayer.py
===================================================================
--- trunk/subtle/GPlayer.py	2008-06-18 00:57:36 UTC (rev 15048)
+++ trunk/subtle/GPlayer.py	2008-06-19 06:30:46 UTC (rev 15049)
@@ -42,18 +42,23 @@
 	pad = self.textoverlay.get_pad("video_sink")
 	ghostpad = gst.GhostPad("sink", pad)
 	bin.add_pad(ghostpad)
+	color = gst.element_factory_make('ffmpegcolorspace')
+	bin.add(color)
+	scale = gst.element_factory_make('videoscale')
+	bin.add(scale)
 	videosink = gst.element_factory_make('autovideosink')
 	bin.add(videosink)
-	gst.element_link_many(self.textoverlay, videosink)
-        self.player = gst.element_factory_make("playbin", "player")
+	gst.element_link_many(self.textoverlay, color, scale, videosink)
+	self.player = gst.element_factory_make("playbin", "player")
 	self.player.set_property("video-sink", bin)
-        self.videowidget = videowidget
+	self.videowidget = videowidget
 
-        bus = self.player.get_bus()
-        bus.enable_sync_message_emission()
-        bus.add_signal_watch()
-        bus.connect('sync-message::element', self.on_sync_message)
-        bus.connect('message', self.on_message)
+	bus = self.player.get_bus()
+	bus.enable_sync_message_emission()
+	bus.add_signal_watch()
+	bus.connect('sync-message::element', self.on_sync_message)
+	bus.connect('message', self.on_message)
+	
 
     ## \var playing
     # Bool variable, TRUE - if media is playing.



More information about the commits mailing list