From f4b79ff0022dd69ce76a2f605cda2e4b19360c26 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 11 Oct 2004 10:17:28 +0000 Subject: [PATCH] and the gstplay examples Original commit message from CVS: and the gstplay examples --- examples/gstplay/player.py | 6 +++--- examples/gstplay/videoplayer.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/gstplay/player.py b/examples/gstplay/player.py index d5a1175..8ff2f7c 100755 --- a/examples/gstplay/player.py +++ b/examples/gstplay/player.py @@ -53,9 +53,9 @@ def main(args): play.connect('eos', lambda p: gst.main_quit()) # Setup source and sinks - play.set_data_src(gst.Element('filesrc')) - play.set_audio_sink(gst.Element('osssink')) - play.set_video_sink(gst.Element('fakesink')) + play.set_data_src(gst.element_factory_make('filesrc')) + play.set_audio_sink(gst.element_factory_make('osssink')) + play.set_video_sink(gst.element_factory_make('fakesink')) # Point location to our filename play.set_location(filename) diff --git a/examples/gstplay/videoplayer.py b/examples/gstplay/videoplayer.py index 15d5418..826db10 100755 --- a/examples/gstplay/videoplayer.py +++ b/examples/gstplay/videoplayer.py @@ -93,11 +93,11 @@ class PlayerWidget(gtk.DrawingArea): self.player = gst.play.Play() self.player.connect('eos', lambda p: gst.main_quit()) - self.imagesink = gst.Element('xvimagesink') + self.imagesink = gst.element_factory_make('xvimagesink') # Setup source and sinks - self.player.set_data_src(gst.Element('filesrc')) - self.player.set_audio_sink(gst.Element('osssink')) + self.player.set_data_src(gst.element_factory_make('filesrc')) + self.player.set_audio_sink(gst.element_factory_make('osssink')) self.player.set_video_sink(self.imagesink) def destroy_cb(self, da): -- 2.7.4