X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fwriter.cc;h=a7e3218b5326396417faf7e7b63bb207456c2024;hb=78e3f86292c133a96fd39842913674c27be059e4;hp=b4655baf98ff46af6181a079b3d68a5bda3c327c;hpb=498b27d7846960833bb85c4f8ebea7f760285d23;p=dcpomatic.git diff --git a/src/lib/writer.cc b/src/lib/writer.cc index b4655baf9..a7e3218b5 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -435,7 +435,7 @@ try DCPOMATIC_ASSERT (i != _queue.rend()); ++_pushed_to_disk; /* For the log message below */ - int const awaiting = _reels[_queue.front().reel].last_written_video_frame(); + int const awaiting = _reels[_queue.front().reel].last_written_video_frame() + 1; lock.unlock (); /* i is valid here, even though we don't hold a lock on the mutex,