Commit 961226e0 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

playbin2: avoid foregoing READY_TO_NULL when appropriate

parent 2bb91c48
...@@ -3673,7 +3673,8 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition) ...@@ -3673,7 +3673,8 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition)
GST_PLAY_BIN_DYN_LOCK (playbin); GST_PLAY_BIN_DYN_LOCK (playbin);
GST_LOG_OBJECT (playbin, "dynamic lock taken, we can continue shutdown"); GST_LOG_OBJECT (playbin, "dynamic lock taken, we can continue shutdown");
GST_PLAY_BIN_DYN_UNLOCK (playbin); GST_PLAY_BIN_DYN_UNLOCK (playbin);
break; if (!do_save)
break;
case GST_STATE_CHANGE_READY_TO_NULL: case GST_STATE_CHANGE_READY_TO_NULL:
/* we go async to PAUSED, so if that fails, we never make it to PAUSED /* we go async to PAUSED, so if that fails, we never make it to PAUSED
* an no state change PAUSED to READY passes here, * an no state change PAUSED to READY passes here,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment