sparsefile: fix possible crash when seeking
authordhilshad <mohddhilshadm@gmail.com>
Sat, 15 Feb 2020 16:50:18 +0000 (22:20 +0530)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 25 May 2020 08:35:32 +0000 (08:35 +0000)
commit319f81bc60054000adcaf7cc052aad7a3afb0cc2
treebaff82754682cb6cc224ea9ddbfacc2086b516f8
parent79374b8d94a6f387462c7f1e6476e0501ead31a9
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>
plugins/elements/gstsparsefile.c