X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplaylist.cc;h=22412da4a3640b5313cd6d75cdb25422a4ee08f6;hb=cf8bbea2de38c4e9ac140f55b27311b7b6dcd814;hp=1c268ca110a90a42f7997e94d46ffd1a13ff4483;hpb=f0edd6ab35c3c2b7800a26ec8206adab75e5f633;p=dcpomatic.git diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index 1c268ca11..22412da4a 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -40,7 +40,6 @@ using std::vector; using std::min; using std::max; using std::string; -using std::stringstream; using std::pair; using boost::optional; using boost::shared_ptr; @@ -366,13 +365,12 @@ Playlist::move_earlier (shared_ptr c) if (previous == _content.end ()) { return; } + DCPTime const p = (*previous)->position (); (*previous)->set_position (p + c->length_after_trim ()); c->set_position (p); sort (_content.begin(), _content.end(), ContentSorter ()); - - Changed (); } void @@ -394,10 +392,7 @@ Playlist::move_later (shared_ptr c) return; } - DCPTime const p = (*next)->position (); (*next)->set_position (c->position ()); - c->set_position (p + c->length_after_trim ()); + c->set_position (c->position() + c->length_after_trim ()); sort (_content.begin(), _content.end(), ContentSorter ()); - - Changed (); }