GNOME Bugzilla – Bug 412077
[speed] can't initially set speed > 1
Last modified: 2007-05-04 17:20:29 UTC
If, before starting playback, you set the speed to a value over 1, no sound will be output. If you wait for a short time (I tried 100 ms) before doing that it works. If you set the speed to a value < 1 it also works. If you set the speed to a value over 1, start the sound, wait a little and then change it, the program will crash. so this works: gst-launch -v filesrc location=test1.mp3 ! decodebin ! audioconvert ! speed speed=1 ! alsasink and this: gst-launch -v filesrc location=test1.mp3 ! decodebin ! audioconvert ! speed speed=0.9 ! alsasink but this doesn't: gst-launch -v filesrc location=test1.mp3 ! decodebin ! audioconvert ! speed speed=1.1 ! alsasink I suppose the plugin is trying to read ahead on data that is not yet available.
Gah, sorry, I fixed this ages ago, but never committed it: 2007-05-04 Tim-Philipp Müller <tim at centricular dot net> * gst/speed/gstspeed.c: (speed_src_event), (speed_sink_event), (speed_chain), (speed_change_state): Fix event handling a bit by replacing completely dubious code written by someone else with completely dubious code written by me. Should at least fix #412077 though.