splitmuxsink: Drop lock when sending dummy event

When pushing the dummy event into the multiqueue,
drop the splitmux lock or else we might deadlock.
This commit is contained in:
Jan Schmidt 2016-07-18 00:12:55 +10:00
parent a1838927f7
commit e2505dd7df

View file

@ -1196,7 +1196,10 @@ handle_mq_input (GstPad * pad, GstPadProbeInfo * info, MqStreamCtx * ctx)
GST_EVENT_TYPE_SERIALIZED,
gst_structure_new ("splitmuxsink-unblock", "timestamp",
G_TYPE_UINT64, splitmux->max_in_running_time, NULL));
GST_SPLITMUX_UNLOCK (splitmux);
gst_pad_send_event (ctx->sinkpad, event);
GST_SPLITMUX_LOCK (splitmux);
/* fallthrough */
}
case SPLITMUX_STATE_START_NEXT_FRAGMENT: