From dedd68862d1bd66a2fa40f4524a1704096c5ff15 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 2 Feb 2016 23:59:19 +0100 Subject: change complete pipeline state, fixes timing things --- example-scripts/gstreamer/source-nostream-music-from-folder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example-scripts') diff --git a/example-scripts/gstreamer/source-nostream-music-from-folder.py b/example-scripts/gstreamer/source-nostream-music-from-folder.py index 87ca3c7..8bd77c2 100755 --- a/example-scripts/gstreamer/source-nostream-music-from-folder.py +++ b/example-scripts/gstreamer/source-nostream-music-from-folder.py @@ -56,9 +56,9 @@ class LoopSource(object): def next_track(self): print("next_track") - self.src.set_state(Gst.State.READY) + self.pipeline.set_state(Gst.State.READY) self.src.set_property('uri', 'file:///home/peter/Music/pieces/003 - Taio Cruz feat. Kylie Minogue - Higher.mp3'); - self.src.set_state(Gst.State.PLAYING) + self.pipeline.set_state(Gst.State.PLAYING) return False def on_eos(self, bus, message): -- cgit v1.2.3