From 5e067da58e99f4421ba16a672c319e2a9603090e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 17 Jun 2015 16:03:13 +0100 Subject: [PATCH] Forward frequent parameter from Playlist::ContentChanged through Film::ContentChanged. --- src/lib/film.cc | 6 +++--- src/lib/film.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/film.cc b/src/lib/film.cc index 66d651c27..19aa6ae9b 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -136,7 +136,7 @@ Film::Film (boost::filesystem::path dir, bool log) set_isdcf_date_today (); _playlist_changed_connection = _playlist->Changed.connect (bind (&Film::playlist_changed, this)); - _playlist_content_changed_connection = _playlist->ContentChanged.connect (bind (&Film::playlist_content_changed, this, _1, _2)); + _playlist_content_changed_connection = _playlist->ContentChanged.connect (bind (&Film::playlist_content_changed, this, _1, _2, _3)); /* Make state.directory a complete path without ..s (where possible) (Code swiped from Adam Bowen on stackoverflow) @@ -1019,7 +1019,7 @@ Film::active_frame_rate_change (DCPTime t) const } void -Film::playlist_content_changed (boost::weak_ptr c, int p) +Film::playlist_content_changed (boost::weak_ptr c, int p, bool frequent) { if (p == VideoContentProperty::VIDEO_FRAME_RATE) { set_video_frame_rate (_playlist->best_dcp_frame_rate ()); @@ -1027,7 +1027,7 @@ Film::playlist_content_changed (boost::weak_ptr c, int p) signal_changed (NAME); } - emit (boost::bind (boost::ref (ContentChanged), c, p)); + emit (boost::bind (boost::ref (ContentChanged), c, p, frequent)); } void diff --git a/src/lib/film.h b/src/lib/film.h index 96a79f9cf..fb75504a2 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -280,7 +280,7 @@ public: mutable boost::signals2::signal Changed; /** Emitted when some property of our content has changed */ - mutable boost::signals2::signal, int)> ContentChanged; + mutable boost::signals2::signal, int, bool)> ContentChanged; /** Current version number of the state file */ static int const current_state_version; @@ -292,7 +292,7 @@ private: void signal_changed (Property); std::string video_identifier () const; void playlist_changed (); - void playlist_content_changed (boost::weak_ptr, int); + void playlist_content_changed (boost::weak_ptr, int, bool frequent); std::string filename_safe_name () const; void maybe_add_content (boost::weak_ptr, boost::weak_ptr); -- 2.30.2