diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-27 12:29:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-27 12:29:06 +0100 |
| commit | f06675329c775a0c37a4af647345a177f21af94e (patch) | |
| tree | a2b131ca2fa86bad35e4755df9d1e1d212cfe723 /src/asset_reader.h | |
| parent | f9474637db140eb3d9170185fc79437c8d9914b7 (diff) | |
Fix decryption of assets.
Diffstat (limited to 'src/asset_reader.h')
| -rw-r--r-- | src/asset_reader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/asset_reader.h b/src/asset_reader.h index 1cfd9ea2..eaf2721a 100644 --- a/src/asset_reader.h +++ b/src/asset_reader.h @@ -36,6 +36,7 @@ #include "dcp_assert.h" #include "asset.h" +#include "decryption_context.h" #include <asdcp/AS_DCP.h> #include <boost/noncopyable.hpp> #include <boost/shared_ptr.hpp> @@ -48,7 +49,8 @@ template <class R, class F> class AssetReader : public boost::noncopyable { public: - explicit AssetReader (Asset const * asset) + explicit AssetReader (Asset const * asset, boost::optional<Key> key) + : _decryption_context (new DecryptionContext (key)) { _reader = new R (); DCP_ASSERT (asset->file ()); |
