From 194f4ebcf79cbe4824375d7e3d18675143b81dda Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 25 Mar 2019 21:55:39 +0000 Subject: [PATCH] Fix build. --- src/lib/film.h | 9 ++++----- src/lib/util.h | 2 +- src/wx/markers_dialog.cc | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/lib/film.h b/src/lib/film.h index 87da8e9d9..87ea700b7 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -301,9 +301,8 @@ public: return _reencode_j2k; } - boost::optional marker (dcp::Marker type) const; - - std::map markers () const { + boost::optional marker (dcp::Marker type) const; + std::map markers () const { return _markers; } @@ -341,7 +340,7 @@ public: void set_reel_length (int64_t); void set_upload_after_make_dcp (bool); void set_reencode_j2k (bool); - void set_marker (dcp::Marker type, DCPTime time); + void set_marker (dcp::Marker type, dcpomatic::DCPTime time); void unset_marker (dcp::Marker type); void set_ratings (std::vector r); @@ -423,7 +422,7 @@ private: bool _reencode_j2k; /** true if the user has ever explicitly set the video frame rate of this film */ bool _user_explicit_video_frame_rate; - std::map _markers; + std::map _markers; std::vector _ratings; int _state_version; diff --git a/src/lib/util.h b/src/lib/util.h index 5177bc28e..b760f7f4b 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -105,7 +105,7 @@ extern void checked_fread (void* ptr, size_t size, FILE* stream, boost::filesyst extern void checked_fwrite (void const * ptr, size_t size, FILE* stream, boost::filesystem::path path); extern size_t utf8_strlen (std::string s); extern std::string day_of_week_to_string (boost::gregorian::greg_weekday d); -extern void emit_subtitle_image (ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size size, boost::shared_ptr decoder); +extern void emit_subtitle_image (dcpomatic::ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size size, boost::shared_ptr decoder); #ifdef DCPOMATIC_VARIANT_SWAROOP extern boost::shared_ptr read_swaroop_chain (boost::filesystem::path path); extern void write_swaroop_chain (boost::shared_ptr chain, boost::filesystem::path output); diff --git a/src/wx/markers_dialog.cc b/src/wx/markers_dialog.cc index 46e8e6d09..441b4566f 100644 --- a/src/wx/markers_dialog.cc +++ b/src/wx/markers_dialog.cc @@ -47,7 +47,7 @@ public: { checkbox = new CheckBox(parent, name); grid->Add (checkbox, wxGBPosition(row, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL); - timecode = new Timecode (parent); + timecode = new Timecode (parent); grid->Add (timecode, wxGBPosition(row, 1)); set_button = new Button (parent, _("Set from current position")); grid->Add (set_button, wxGBPosition(row, 2)); @@ -55,7 +55,7 @@ public: shared_ptr f = film.lock (); DCPOMATIC_ASSERT (f); - optional t = f->marker (type); + optional t = f->marker (type); checkbox->SetValue (static_cast(t)); if (t) { timecode->set (*t, f->video_frame_rate()); @@ -100,7 +100,7 @@ private: weak_ptr viewer; dcp::Marker type; CheckBox* checkbox; - Timecode* timecode; + Timecode* timecode; Button* set_button; }; -- 2.30.2