diff options
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 12 |
1 files changed, 12 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 { |
