Try an ack on request for the batch converter to do a job.
authorCarl Hetherington <cth@carlh.net>
Tue, 15 Dec 2015 23:32:14 +0000 (23:32 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 15 Dec 2015 23:32:14 +0000 (23:32 +0000)
src/tools/dcpomatic.cc
src/tools/dcpomatic_batch.cc

index 894e9329fbab6e5eb98c9e63ac8e278561894f72..c1ce24eb563e048b93cd4d87058f861ba53f4df5 100644 (file)
@@ -511,6 +511,9 @@ private:
                                string s = _film->directory().string ();
                                socket.write (s.length() + 1);
                                socket.write ((uint8_t *) s.c_str(), s.length() + 1);
+                               /* OK\0 */
+                               uint8_t ok[3];
+                               socket.read (ok, 3);
                                return;
                        } catch (exception& e) {
                                std::cout << "start batch failed: " << e.what() << "\n";
index 5693c391dfd4fda7329e5b92f2d52a679743e4ff..109bbfca0b59abdb049fd18abf81c34331d6fccd 100644 (file)
@@ -261,6 +261,7 @@ public:
                        socket->read (reinterpret_cast<uint8_t*> (buffer.get()), length);
                        string s (buffer.get());
                        _frame->start_job (s);
+                       socket->write (reinterpret_cast<uint8_t const *> ("OK"), 3);
                } catch (...) {
 
                }