tomaszzmuda / Xabe.FFmpeg

.NET Standard wrapper for FFmpeg. It allows to process media without know how FFmpeg works, and can be used to pass customized arguments to FFmpeg from dotnet core application.
https://xabe.net/product/xabe_ffmpeg/
Other
711 stars 126 forks source link

Mitigation of file modification during execution #442

Open djon2003 opened 1 year ago

djon2003 commented 1 year ago

Shall the code be protected against modification of a file meanwhile executing?

One example: Xabe.FFmpeg.FFprobeWrapper:154 If the file is renamed before executing this line than then "infos.format" is null. It could also happen if it is on network share that is not more available, file deleted, etc.

What I mean by protection is not throwing NullException when the real reason is file no more exist.

What do you think about that?