Allow moving-still-image sources to have their frame rate specified.
[dcpomatic.git] / src / lib / content.cc
index f09012765a7cbe7616d1e2ae40a870981b74604a..ccca46bc02fbedd91e79b6665f6d7858736cb788 100644 (file)
@@ -150,6 +150,10 @@ Content::set_position (Time p)
 {
        {
                boost::mutex::scoped_lock lm (_mutex);
+               if (p == _position) {
+                       return;
+               }
+               
                _position = p;
        }
 
@@ -232,7 +236,7 @@ Content::identifier () const
 }
 
 bool
-Content::path_valid () const
+Content::paths_valid () const
 {
        for (vector<boost::filesystem::path>::const_iterator i = _paths.begin(); i != _paths.end(); ++i) {
                if (!boost::filesystem::exists (*i)) {