summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-20 01:13:27 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-20 01:13:27 +0100
commita9370ddf1d55ca01307c086950d2294611d9e6a6 (patch)
treef1dda402c58c89534ede93e96ce9f79d244ad4a7
parent6405a6cec2420a4810dc0a39942804b4dd5bb7b9 (diff)
Slightly hacky fix to make ImageSequenceDialog actually work.
-rw-r--r--ChangeLog5
-rw-r--r--src/lib/image_examiner.cc5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 37ac15d07..778b2067f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-20 Carl Hetherington <cth@carlh.net>
+
+ * Fix setting of frame rate when loading
+ image folders.
+
2015-09-18 Carl Hetherington <cth@carlh.net>
* Add another upmixer which is a simpler
diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc
index bb0f365d6..7a93b5cd1 100644
--- a/src/lib/image_examiner.cc
+++ b/src/lib/image_examiner.cc
@@ -84,6 +84,11 @@ ImageExaminer::video_size () const
optional<double>
ImageExaminer::video_frame_rate () const
{
+ if (_image_content->video_frame_rate() != 0) {
+ /* The content already knows what frame rate it should be */
+ return _image_content->video_frame_rate();
+ }
+
/* Don't know */
return optional<double> ();
}