uridecodebin3: free_play_items when READY_TO_PAUSED failed.

We will never go through the PAUSED_TO_READY transition if
that is the case, and thus never free the play items.
This commit is contained in:
Mathieu Duponchelle 2018-04-12 19:33:18 +02:00
parent b6853f783f
commit faaa2423c2

View file

@ -1064,6 +1064,8 @@ gst_uri_decode_bin3_change_state (GstElement * element,
/* ERRORS */
failure:
{
if (transition == GST_STATE_CHANGE_READY_TO_PAUSED)
free_play_items (uridecodebin);
return ret;
}
}