GNOME Bugzilla – Bug 644935
[inputselector] During switching of streams it can happen that all pads returned not-linked last
Last modified: 2011-03-17 12:41:36 UTC
Switching streams if they're of the only stream type of the demuxer fails with not-linked. For example when trying to switch between two audio streams of an audio only file this happens. Reason for this is, that in the beginning the second stream will always report not-linked to the demuxer and after the switch the first stream will report not-linked to the demuxer (unless a buffer of the second, selected stream was pushed first). This combined makes the demuxer error out. No idea yet how this can be fixed. Maybe input-selector should return OK after a switch until the first buffer of the activated pad was pushed.
Created attachment 183554 [details] test.ogg
Created attachment 183555 [details] [review] inputselector: Return GST_FLOW_OK until the selected pad pushed something downstream This makes sure that during switches at no point in time all pads have returned not-linked, which can happen when playing an audio-only file with playbin2 and switching between the streams for example. Fixes bug #644935.
Not really a regression but should be reviewed before 0.10.33 :)
commit f19bb850acb3863ce1ed26407593d9ea42b78c8f Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed Mar 16 18:19:11 2011 +0100 inputselector: Return GST_FLOW_OK until the selected pad pushed something do This makes sure that during switches at no point in time all pads have returned not-linked, which can happen when playing an audio-only file with playbin2 and switching between the streams for example. Fixes bug #644935.