Properly remove JSON server; remove some unused usings; remove some unnecessary uses...
[dcpomatic.git] / src / lib / writer.cc
index 01da6d3b4d9e6c5aad73287e0a8ed8d4c8d1f616..e8d4f90a6cbc181bb7c162cf5bf7efc1179db29c 100644 (file)
@@ -53,7 +53,6 @@ using std::pair;
 using std::string;
 using std::list;
 using std::cout;
-using std::stringstream;
 using boost::shared_ptr;
 using boost::weak_ptr;
 
@@ -238,11 +237,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 */
@@ -563,7 +562,7 @@ Writer::check_existing_picture_mxf ()
                ++N;
        }
 
-       while (1) {
+       while (true) {
 
                shared_ptr<Job> job = _job.lock ();
                assert (job);