Merge master.
[dcpomatic.git] / src / lib / writer.cc
index 33817ca6eb8b6479b6eedec4539bae54c2faed91..489135b846e8cb7d9d20e32d00a928c8a8117256 100644 (file)
@@ -241,11 +241,11 @@ void
 Writer::thread ()
 try
 {
-       while (1)
+       while (true)
        {
                boost::mutex::scoped_lock lock (_mutex);
 
-               while (1) {
+               while (true) {
                        
                        if (_finish || _queued_full_in_memory > _maximum_frames_in_memory || have_sequenced_image_at_queue_head ()) {
                                /* We've got something to do: go and do it */
@@ -530,7 +530,7 @@ Writer::check_existing_picture_mxf ()
                ++N;
        }
 
-       while (1) {
+       while (true) {
 
                shared_ptr<Job> job = _job.lock ();
                assert (job);