aboutsummaryrefslogtreecommitdiff
path: root/example-scripts
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-02-02 23:59:19 +0100
committerMaZderMind <git@mazdermind.de>2016-02-02 23:59:19 +0100
commitdedd68862d1bd66a2fa40f4524a1704096c5ff15 (patch)
tree147fbc64f1572d2baa172c0e6fc78ec571c97409 /example-scripts
parent58d6dadca40827f98976724901715b0362037aa4 (diff)
change complete pipeline state, fixes timing things
Diffstat (limited to 'example-scripts')
-rwxr-xr-xexample-scripts/gstreamer/source-nostream-music-from-folder.py4
1 files changed, 2 insertions, 2 deletions
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):