mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
and the gstplay examples
Original commit message from CVS: and the gstplay examples
This commit is contained in:
parent
58b2da766e
commit
f4b79ff002
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue