diff options
Diffstat (limited to 'src/reel_mxf_asset.h')
| -rw-r--r-- | src/reel_mxf_asset.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reel_mxf_asset.h b/src/reel_mxf_asset.h index 60234f4f..9b6a78a9 100644 --- a/src/reel_mxf_asset.h +++ b/src/reel_mxf_asset.h @@ -47,18 +47,18 @@ public: * that its content is encrypted. */ bool encrypted () const { - return !_key_id.empty (); + return _key_id; } - /** @return Key ID to describe the key that encrypts this asset's; - * content. + /** @return Key ID to describe the key that encrypts this asset's + * content, if there is one. */ - std::string key_id () const { + boost::optional<std::string> key_id () const { return _key_id; } private: - std::string _key_id; ///< The <KeyId> from the reel's entry for this asset, or empty if there isn't one + boost::optional<std::string> _key_id; ///< The <KeyId> from the reel's entry for this asset, if there is one }; } |
