diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-11 00:18:40 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-11 00:18:40 +0000 |
| commit | beea3beacba34c11b6b73323f4c3c8590a9aa73e (patch) | |
| tree | 70c7507dff9e52bddbe1052129e408a4b1df3764 /src/lib/writer.h | |
| parent | b45f90d8d504c15b60d2ae3a3344e8beb2947f8a (diff) | |
Basic attempt to catch exceptions in the writer thread and pass them safely back to the GUI.
Diffstat (limited to 'src/lib/writer.h')
| -rw-r--r-- | src/lib/writer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h index cee20acb9..beb16c7b9 100644 --- a/src/lib/writer.h +++ b/src/lib/writer.h @@ -21,6 +21,7 @@ #include <boost/shared_ptr.hpp> #include <boost/thread.hpp> #include <boost/thread/condition.hpp> +#include "exceptions.h" class Film; class EncodedData; @@ -59,7 +60,7 @@ public: bool operator< (QueueItem const & a, QueueItem const & b); bool operator== (QueueItem const & a, QueueItem const & b); -class Writer +class Writer : public ExceptionStore { public: Writer (boost::shared_ptr<Film>); @@ -113,7 +114,7 @@ private: due to the limit of frames to be held in memory. */ int _pushed_to_disk; - + boost::shared_ptr<libdcp::MonoPictureAsset> _picture_asset; boost::shared_ptr<libdcp::MonoPictureAssetWriter> _picture_asset_writer; boost::shared_ptr<libdcp::SoundAsset> _sound_asset; |
