From 150db81287d969461d5f146ba34f5cc3f644c8da Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Wed, 20 Apr 2022 08:09:58 +0900 Subject: [PATCH] dashsink: Unlock when failed to get content Part-of: --- subprojects/gst-plugins-bad/ext/dash/gstdashsink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/dash/gstdashsink.c b/subprojects/gst-plugins-bad/ext/dash/gstdashsink.c index dd8d9f8ddb..8a94d379f9 100644 --- a/subprojects/gst-plugins-bad/ext/dash/gstdashsink.c +++ b/subprojects/gst-plugins-bad/ext/dash/gstdashsink.c @@ -854,8 +854,10 @@ gst_dash_sink_write_mpd_file (GstDashSink * sink, g_mutex_lock (&sink->mpd_lock); gst_dash_sink_generate_mpd_content (sink, current_stream); - if (!gst_mpd_client_get_xml_content (sink->mpd_client, &mpd_content, &size)) + if (!gst_mpd_client_get_xml_content (sink->mpd_client, &mpd_content, &size)) { + g_mutex_unlock (&sink->mpd_lock); return; + } g_mutex_unlock (&sink->mpd_lock); if (sink->mpd_root_path)