downloadbuffer: unlock mutex in error case

This commit is contained in:
Wim Taymans 2017-03-10 10:12:49 +01:00
parent d781d09d99
commit 64a1d4ad0b

View file

@ -1250,6 +1250,7 @@ out_seeking:
} }
write_error: write_error:
{ {
GST_DOWNLOAD_BUFFER_MUTEX_UNLOCK (dlbuf);
gst_buffer_unmap (buffer, &info); gst_buffer_unmap (buffer, &info);
gst_buffer_unref (buffer); gst_buffer_unref (buffer);
GST_ELEMENT_ERROR (dlbuf, RESOURCE, WRITE, GST_ELEMENT_ERROR (dlbuf, RESOURCE, WRITE,