mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
sparsefile: fix possible crash when seeking
In gst_sparse_file_clear function we were closing a file and reopening it using closed file descriptor. Fix: Removed closing and reopening of file. Fixes #512 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/372>
This commit is contained in:
parent
c666a9a7e1
commit
5f7e3392a9
1 changed files with 0 additions and 4 deletions
|
@ -191,10 +191,6 @@ gst_sparse_file_clear (GstSparseFile * file)
|
|||
{
|
||||
g_return_if_fail (file != NULL);
|
||||
|
||||
if (file->file) {
|
||||
fclose (file->file);
|
||||
file->file = fdopen (file->fd, "wb+");
|
||||
}
|
||||
g_slice_free_chain (GstSparseRange, file->ranges, next);
|
||||
file->current_pos = 0;
|
||||
file->ranges = NULL;
|
||||
|
|
Loading…
Reference in a new issue