From e2505dd7dfcc1e0a784e9179e3808a6a919b2f26 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 18 Jul 2016 00:12:55 +1000 Subject: [PATCH] splitmuxsink: Drop lock when sending dummy event When pushing the dummy event into the multiqueue, drop the splitmux lock or else we might deadlock. --- gst/multifile/gstsplitmuxsink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index 88fdce0cce..f76b8f16f7 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -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: -- 2.34.1