mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
playsink: set READY sinks to NULL before freeing chain upon failure
This commit is contained in:
parent
23cadbae94
commit
1a40681f53
1 changed files with 6 additions and 0 deletions
|
@ -1333,6 +1333,8 @@ link_failed:
|
|||
{
|
||||
GST_ELEMENT_ERROR (playsink, CORE, PAD,
|
||||
(NULL), ("Failed to configure the video sink."));
|
||||
/* checking sink made it READY */
|
||||
gst_element_set_state (chain->sink, GST_STATE_NULL);
|
||||
free_chain ((GstPlayChain *) chain);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1826,6 +1828,8 @@ link_failed:
|
|||
{
|
||||
GST_ELEMENT_ERROR (playsink, CORE, PAD,
|
||||
(NULL), ("Failed to configure the audio sink."));
|
||||
/* checking sink made it READY */
|
||||
gst_element_set_state (chain->sink, GST_STATE_NULL);
|
||||
free_chain ((GstPlayChain *) chain);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -2040,6 +2044,8 @@ link_failed:
|
|||
{
|
||||
GST_ELEMENT_ERROR (playsink, CORE, PAD,
|
||||
(NULL), ("Failed to configure the visualisation element."));
|
||||
/* element made it to READY */
|
||||
gst_element_set_state (chain->vis, GST_STATE_NULL);
|
||||
free_chain ((GstPlayChain *) chain);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue