[vlc-devel] [PATCH v2 4/13] esout: refactor GetTmpFile()

Rémi Denis-Courmont remi at remlab.net
Tue Oct 6 22:40:13 CEST 2020

Le tiistaina 6. lokakuuta 2020, 23.31.36 EEST Rémi Denis-Courmont a écrit :
> How about *actually* factoring the admittedly repetitive code?
> You can just call GetTempFile(filename, "/tmp"); and divide the length of
> the function in half. This does not need any external change.

And in fact, we really don't need a file name here at all, because we really 
don't need two concurrent file handles to the same file.

Could just as well use tmpfile() which would be safe from leaking disk space.


More information about the vlc-devel mailing list