adaptivedemux: do not try to unlock not locked mutex

A misplaced unlock was causing an assertion for playback with a
set stop time
This commit is contained in:
Thiago Santos 2014-12-08 08:53:00 -03:00
parent aba9d86d08
commit d30ec9f9f7

View file

@ -1898,7 +1898,6 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
if (gst_adaptive_demux_has_next_period (demux)) {
gst_adaptive_demux_advance_period (demux);
ret = GST_FLOW_OK;
goto end_of_manifest;
}
}
}
@ -1977,8 +1976,8 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
break;
}
end_of_manifest:
GST_MANIFEST_UNLOCK (demux);
end_of_manifest:
if (G_UNLIKELY (ret == GST_FLOW_EOS)) {
gst_adaptive_demux_stream_push_event (stream, gst_event_new_eos ());
}