mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
splitmux: Recheck state after unlocking mutex.
After dropping the splitmux lock, re-check the state, don't just fall through and sleep unconditionally, as we may have already missed the wakeup. https://bugzilla.gnome.org/show_bug.cgi?id=769514
This commit is contained in:
parent
69df65fabe
commit
89af379ff0
1 changed files with 3 additions and 0 deletions
|
@ -1233,6 +1233,9 @@ handle_mq_input (GstPad * pad, GstPadProbeInfo * info, MqStreamCtx * ctx)
|
|||
GST_SPLITMUX_UNLOCK (splitmux);
|
||||
gst_pad_send_event (ctx->sinkpad, event);
|
||||
GST_SPLITMUX_LOCK (splitmux);
|
||||
/* state may have changed while we were unlocked. Loop again if so */
|
||||
if (splitmux->state != SPLITMUX_STATE_ENDING_FILE)
|
||||
break;
|
||||
/* fallthrough */
|
||||
}
|
||||
case SPLITMUX_STATE_START_NEXT_FRAGMENT:
|
||||
|
|
Loading…
Reference in a new issue