mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
basesink: unset PLAYING transition flag when transition completed
This commit is contained in:
parent
c8b9275578
commit
27313d05c1
1 changed files with 6 additions and 0 deletions
|
@ -5044,6 +5044,12 @@ gst_base_sink_change_state (GstElement * element, GstStateChange transition)
|
|||
}
|
||||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||
/* completed transition, so need not be marked any longer
|
||||
* And it should be unmarked, since e.g. losing our position upon flush
|
||||
* does not really change state to PAUSED ... */
|
||||
g_atomic_int_set (&basesink->priv->to_playing, FALSE);
|
||||
break;
|
||||
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
||||
g_atomic_int_set (&basesink->priv->to_playing, FALSE);
|
||||
GST_DEBUG_OBJECT (basesink, "PLAYING to PAUSED");
|
||||
|
|
Loading…
Reference in a new issue