uridecodebin3: free_play_items when READY_TO_PAUSED failed.
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 12 Apr 2018 17:33:18 +0000 (19:33 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 12 Apr 2018 17:33:18 +0000 (19:33 +0200)
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

index ce3dde0..9b2147a 100644 (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;
   }
 }