dashsink: Unlock when failed to get content

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2246>
This commit is contained in:
Wonchul Lee 2022-04-20 08:09:58 +09:00 committed by Tim-Philipp Müller
parent 3eb5d66938
commit 7d862e0f5e

View file

@ -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)