mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
playsink: undo state change side effect on error way out
... to avoid subsequent cleanup disposing an element not in NULL state.
This commit is contained in:
parent
948e4d50a6
commit
102b4feddf
1 changed files with 2 additions and 0 deletions
|
@ -1961,6 +1961,8 @@ setup_audio_chain (GstPlaySink * playsink, gboolean raw)
|
|||
* re-generate the chain */
|
||||
if (chain->volume == NULL) {
|
||||
GST_DEBUG_OBJECT (playsink, "no existing volume element to re-use");
|
||||
/* undo background state change done earlier */
|
||||
gst_element_set_state (chain->sink, GST_STATE_NULL);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue