downloadbuffer: close file before trying to remove
authorDoug Nazar <nazard@nazar.ca>
Fri, 7 May 2021 03:00:57 +0000 (23:00 -0400)
committerDoug Nazar <nazard@nazar.ca>
Fri, 7 May 2021 03:04:27 +0000 (23:04 -0400)
commitc71805c565b10bf31db239ad46a0768cba9de8b0
tree0314ae0e57d73eabf7395a2a59986a08eafae7cc
parent135f517ea376efd6b07f91ce738d262cb0458897
downloadbuffer: close file before trying to remove

On Windows, the file handles must be closed before you can delete a file.
Also, it would cause an error if you try to close an already closed handle.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/814>
plugins/elements/gstdownloadbuffer.c