diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-02-23 14:29:03 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-02-23 14:33:35 +0100 |
commit | 102b4feddf4f519515b5d33873f8aee776bdabfa (patch) | |
tree | 30a377de37b60df47bb9dd6f6d643df4e4267896 | |
parent | 948e4d50a6c6f43ede5ba32758e43c759cf007d8 (diff) |
playsink: undo state change side effect on error way out
... to avoid subsequent cleanup disposing an element not in NULL state.
-rw-r--r-- | gst/playback/gstplaysink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 76c6e677c..14d688217 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -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; } |