mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +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
79374b8d94
commit
319f81bc60
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