Support for keeping video in sequence when changing lengths; tie selection in timelin...
[dcpomatic.git] / src / lib / player.cc
index 786180a6a5f27d6e50331a1530a43b70e253f22f..34894ff0e1f2a8bb0977a974b11c4968682380df 100644 (file)
@@ -251,14 +251,6 @@ Player::add_silent_piece (Time s, Time len)
 }
 
 
-struct ContentSorter
-{
-       bool operator() (shared_ptr<Content> a, shared_ptr<Content> b)
-       {
-               return a->start() < b->start();
-       }
-};
-
 void
 Player::setup_pieces ()
 {
@@ -358,7 +350,7 @@ Player::content_changed (weak_ptr<Content> w, int p)
                return;
        }
 
-       if (p == ContentProperty::START || p == VideoContentProperty::VIDEO_LENGTH) {
+       if (p == ContentProperty::START || p == ContentProperty::LENGTH) {
                _have_valid_pieces = false;
        }
 }