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)