From 961226e0cd9cbd8c94d142763f8a1ba82f9aa9a8 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 15 Apr 2011 11:11:52 +0200 Subject: [PATCH] playbin2: avoid foregoing READY_TO_NULL when appropriate --- gst/playback/gstplaybin2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 4185c38b9c..5f0f964cd8 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -3673,7 +3673,8 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition) GST_PLAY_BIN_DYN_LOCK (playbin); GST_LOG_OBJECT (playbin, "dynamic lock taken, we can continue shutdown"); GST_PLAY_BIN_DYN_UNLOCK (playbin); - break; + if (!do_save) + break; case GST_STATE_CHANGE_READY_TO_NULL: /* we go async to PAUSED, so if that fails, we never make it to PAUSED * an no state change PAUSED to READY passes here,