On 23-05-2019 11:20 PM, Nicolas George wrote:
Gyan (12019-05-23):
- unlink(buffername);
- av_freep(&buffername);
+ ret = avpriv_io_delete(buffername);
Is there a reason you replace unlink() with avpriv_io_delete()? unlink()
is more direct, and cache does not support non-file cache.
avpriv_io_delete will call the file protocol's delete which is guarded with a
header check, not done here. Since we now have a generic wrapper function,
isn't that better for future maintenance? The unlink call was added in 2011,
the wrapper in 2015.
Gyan
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".