diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-17 13:16:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-17 13:17:28 +0200 |
| commit | dfac61382f1719f0a879747de43cbc5f9115c2d7 (patch) | |
| tree | e93793ac4d74f060050492905d97ea6156b5883c /src/lib/ffmpeg_file_encoder.h | |
| parent | bd23f55d8cd73adda823d0a2fcabc129b8845a81 (diff) | |
Tidy up resource management of FFmpegFileEncoders so that theybetter-butler-errors
are cleaned up correctly when an error occurs.
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.h')
| -rw-r--r-- | src/lib/ffmpeg_file_encoder.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_file_encoder.h b/src/lib/ffmpeg_file_encoder.h index a0c17c846..e4ae04a78 100644 --- a/src/lib/ffmpeg_file_encoder.h +++ b/src/lib/ffmpeg_file_encoder.h @@ -29,8 +29,9 @@ extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> } +#include <boost/noncopyable.hpp> -class FFmpegFileEncoder +class FFmpegFileEncoder : public boost::noncopyable { public: FFmpegFileEncoder ( @@ -43,6 +44,8 @@ public: boost::filesystem::path output ); + ~FFmpegFileEncoder (); + void video (boost::shared_ptr<PlayerVideo>, DCPTime); void audio (boost::shared_ptr<AudioBuffers>); void subtitle (PlayerText, DCPTimePeriod); |
