X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic.cc;h=cef7cf602c76f7f7389aad93cb584bce8d8e76b3;hb=7552a04c443c9c641ac580585f6d88900bf84d04;hp=13569d11d7acd648961358ae1f36cf18fd268ea4;hpb=2632343cc712188e0db2afa1e551e4a5086e70fa;p=dcpomatic.git diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 13569d11d..cef7cf602 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -812,7 +812,7 @@ private: } /** @return false if we succeeded, true if not */ - bool send_to_other_tool (int port, function start, string message) + bool send_to_other_tool (int port, function start, string message) { /* i = 0; try to connect via socket i = 1; try again, and then try to start the tool @@ -838,7 +838,7 @@ private: } if (i == 1) { - start (wx_to_std (wxStandardPaths::Get().GetExecutablePath())); + start (); } dcpomatic_sleep_seconds (1); @@ -864,7 +864,7 @@ private: _film->write_metadata (); - if (send_to_other_tool (BATCH_JOB_PORT, bind (&start_batch_converter, _1), _film->directory()->string())) { + if (send_to_other_tool (BATCH_JOB_PORT, &start_batch_converter, _film->directory()->string())) { error_dialog (this, _("Could not find batch converter.")); } } @@ -875,7 +875,7 @@ private: return; } - if (send_to_other_tool (PLAYER_PLAY_PORT, bind (&start_player, _1), _film->dir(_film->dcp_name(false)).string())) { + if (send_to_other_tool (PLAYER_PLAY_PORT, &start_player, _film->dir(_film->dcp_name(false)).string())) { error_dialog (this, _("Could not find player.")); } } @@ -905,9 +905,9 @@ private: dcp::LocalTime from (Config::instance()->signer_chain()->leaf().not_before()); - from.add_minutes (1); + from.add_days (1); dcp::LocalTime to (Config::instance()->signer_chain()->leaf().not_after()); - to.add_minutes (-1); + to.add_days (-1); optional kdm; try {