fix: apply cmake fixes after merge of #1210 (#1264)

build in CMake branch is broken at least locally on OS X after #1210 was
merged which introduced some new warnings and reintroduced
base::nullopt.
This commit is contained in:
Cosmin Stejerean 2023-09-19 09:03:32 +01:00 committed by GitHub
parent 5557e76c2b
commit 8b87804c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -296,7 +296,7 @@ std::optional<xml::XmlNode> AdaptationSet::GetXml() {
!adaptation_set.AddSupplementalProperty(
"urn:mpeg:mpegB:cicp:TransferCharacteristics",
std::to_string(transfer_characteristics_))) {
return base::nullopt;
return std::nullopt;
}
// Note: must be checked before checking segments_aligned_ (below). So that

View File

@ -181,7 +181,7 @@ class AdaptationSet {
void set_codec(const std::string& codec) { codec_ = codec; };
/// @return transfer_characteristics.
const uint32_t transfer_characteristics() const {
uint32_t transfer_characteristics() const {
return transfer_characteristics_;
}

View File

@ -11,6 +11,7 @@
#include <libxml/tree.h>
#include <cstdint>
#include <list>
#include <string>