From faaa2423c2485114cbccb2a125e19175e2d9044d Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 12 Apr 2018 19:33:18 +0200 Subject: [PATCH] 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. --- gst/playback/gsturidecodebin3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gsturidecodebin3.c b/gst/playback/gsturidecodebin3.c index ce3dde0..9b2147a 100644 --- a/gst/playback/gsturidecodebin3.c +++ b/gst/playback/gsturidecodebin3.c @@ -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; } } -- 2.7.4