diff options
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/cpl.cc | 5 | ||||
| -rw-r--r-- | src/parse/cpl.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/parse/cpl.cc b/src/parse/cpl.cc index c4cf4374..e7ed4497 100644 --- a/src/parse/cpl.cc +++ b/src/parse/cpl.cc @@ -111,6 +111,8 @@ Picture::Picture (shared_ptr<const cxml::Node> node) } + key_id = node->optional_string_child ("KeyId").get_value_or (""); + node->ignore_child ("Hash"); node->done (); @@ -124,7 +126,8 @@ MainSound::MainSound (shared_ptr<const cxml::Node> node) intrinsic_duration = node->number_child<int64_t> ("IntrinsicDuration"); entry_point = node->number_child<int64_t> ("EntryPoint"); duration = node->number_child<int64_t> ("Duration"); - + key_id = node->optional_string_child ("KeyId").get_value_or (""); + node->ignore_child ("Hash"); node->ignore_child ("Language"); diff --git a/src/parse/cpl.h b/src/parse/cpl.h index 434a244b..04bf9351 100644 --- a/src/parse/cpl.h +++ b/src/parse/cpl.h @@ -48,6 +48,7 @@ public: int64_t duration; Fraction frame_rate; Fraction screen_aspect_ratio; + std::string key_id; }; @@ -80,6 +81,7 @@ public: int64_t intrinsic_duration; int64_t entry_point; int64_t duration; + std::string key_id; }; /** @brief A simple parser for and representation of a CPL \<MainSubtitle\> node */ |
