possible crash in gstsparsefile.c
in gst_sparse_file_clear()
we have
if (file->file) {
fclose (file->file);
file->file = fdopen (file->fd, "wb+");
}
fclose
will close the file descriptor. In the very next line, we are trying to open the file using the same (closed) file descriptor. This will cause a crash.
Why do we need to close the file in this function?