diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-07 09:29:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-07 09:29:06 +0000 |
| commit | ea6240f349a27e1e8f4f03ee69640e3a2939d958 (patch) | |
| tree | 5b681e232ade7707ff20c3c6864f6cb3a110a7ba /src/lib/image_content.cc | |
| parent | 9dc4a15bf9cd11e076d35dc71041b3149128877c (diff) | |
Allow moving-still-image sources to have their frame rate specified.
Diffstat (limited to 'src/lib/image_content.cc')
| -rw-r--r-- | src/lib/image_content.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc index b05fa6b8d..2d29df0c4 100644 --- a/src/lib/image_content.cc +++ b/src/lib/image_content.cc @@ -144,3 +144,19 @@ ImageContent::still () const { return number_of_paths() == 1; } + +void +ImageContent::set_video_frame_rate (float r) +{ + { + boost::mutex::scoped_lock lm (_mutex); + if (_video_frame_rate == r) { + return; + } + + _video_frame_rate = r; + } + + signal_changed (VideoContentProperty::VIDEO_FRAME_RATE); +} + |
