playbin2: avoid foregoing READY_TO_NULL when appropriate
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 15 Apr 2011 09:11:52 +0000 (11:11 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 15 Apr 2011 09:13:31 +0000 (11:13 +0200)
gst/playback/gstplaybin2.c

index 4185c38..5f0f964 100644 (file)
@@ -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,