ruby-av / paperclip-av-transcoder

Audio/Video Transcoder for Paperclip using FFMPEG/Avconv
MIT License
135 stars 83 forks source link

Remove tempfile if exception is thrown #54

Open kilink opened 7 years ago

kilink commented 7 years ago

Proactively clean up the tempfile if Av throws an exception and whiny is true. This prevents tempfiles from lingering around unnecessarily until the next GC.

See related issue: https://github.com/thoughtbot/paperclip/issues/1326