dashsink: Unlock when failed to get content
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2242>
This commit is contained in:
parent
4c0d64dd10
commit
150db81287
@ -854,8 +854,10 @@ gst_dash_sink_write_mpd_file (GstDashSink * sink,
|
|||||||
|
|
||||||
g_mutex_lock (&sink->mpd_lock);
|
g_mutex_lock (&sink->mpd_lock);
|
||||||
gst_dash_sink_generate_mpd_content (sink, current_stream);
|
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;
|
return;
|
||||||
|
}
|
||||||
g_mutex_unlock (&sink->mpd_lock);
|
g_mutex_unlock (&sink->mpd_lock);
|
||||||
|
|
||||||
if (sink->mpd_root_path)
|
if (sink->mpd_root_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user