Fix sound corruption with multiple sound files (#2368).
[dcpomatic.git] / src / lib / player.h
index 0add90e97c82aedc9d34c45eea2d1899a4296714..45dcd9900c256bce1996e3b92f4ec4699dfe83bd 100644 (file)
@@ -227,13 +227,12 @@ private:
        public:
                StreamState () {}
 
-               StreamState (std::shared_ptr<Piece> p, dcpomatic::DCPTime l)
+               explicit StreamState(std::shared_ptr<Piece> p)
                        : piece(p)
-                       , last_push_end(l)
                {}
 
                std::shared_ptr<Piece> piece;
-               dcpomatic::DCPTime last_push_end;
+               boost::optional<dcpomatic::DCPTime> last_push_end;
        };
        std::map<AudioStreamPtr, StreamState> _stream_states;