Cleanup: make a temporary for the content list.
[dcpomatic.git] / src / lib / player.cc
index 80b972dbe6a4d5ca2c600ce0bdeed3d9b89a1feb..3c3032bd12ed7a9162a2b7c668213139c17a3b00 100644 (file)
@@ -932,6 +932,18 @@ Player::open_subtitles_for_frame (DCPTime time) const
 }
 
 
+static
+Eyes
+increment_eyes (Eyes e)
+{
+       if (e == Eyes::LEFT) {
+               return Eyes::RIGHT;
+       }
+
+       return Eyes::LEFT;
+}
+
+
 void
 Player::video (weak_ptr<Piece> weak_piece, ContentVideo video)
 {
@@ -1347,6 +1359,10 @@ Player::seek (DCPTime time, bool accurate)
        _silent.set_position (time);
 
        _last_video.clear ();
+
+       for (auto& state: _stream_states) {
+               state.second.last_push_end = boost::none;
+       }
 }