diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/content.cc | 12 | ||||
| -rw-r--r-- | src/lib/content.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index 40f74fe9a..7b1e630a6 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -48,6 +48,7 @@ using std::vector; using std::max; using std::pair; using boost::shared_ptr; +using boost::optional; using dcp::raw_convert; using dcp::locale_convert; @@ -361,6 +362,17 @@ Content::set_video_frame_rate (double r) signal_changed (ContentProperty::VIDEO_FRAME_RATE); } +void +Content::unset_video_frame_rate () +{ + { + boost::mutex::scoped_lock lm (_mutex); + _video_frame_rate = optional<double>(); + } + + signal_changed (ContentProperty::VIDEO_FRAME_RATE); +} + double Content::active_video_frame_rate () const { diff --git a/src/lib/content.h b/src/lib/content.h index f0a2d0bdb..836a3bd77 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -166,6 +166,7 @@ public: } void set_video_frame_rate (double r); + void unset_video_frame_rate (); double active_video_frame_rate () const; |
