mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
playbin2: avoid foregoing READY_TO_NULL when appropriate
This commit is contained in:
parent
2bb91c4880
commit
961226e0cd
1 changed files with 2 additions and 1 deletions
|
@ -3673,6 +3673,7 @@ 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);
|
||||||
|
if (!do_save)
|
||||||
break;
|
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
|
||||||
|
|
Loading…
Reference in a new issue