projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d055598
)
Comments.
author
Carl Hetherington
<cth@carlh.net>
Sun, 15 Mar 2020 21:26:34 +0000
(22:26 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 15 Mar 2020 21:26:34 +0000
(22:26 +0100)
src/tools/dcpomatic_player.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_player.cc
b/src/tools/dcpomatic_player.cc
index ae1bc4c81e6bcd9c43a1e4f0b4ed5725b6f99caf..cb81c5b89d7aaa24a2fc4bdfc4aee7cd97f5ac49 100644
(file)
--- a/
src/tools/dcpomatic_player.cc
+++ b/
src/tools/dcpomatic_player.cc
@@
-101,6
+101,7
@@
using dcp::raw_convert;
using namespace dcpomatic;
#ifdef DCPOMATIC_PLAYER_STRESS_TEST
using namespace dcpomatic;
#ifdef DCPOMATIC_PLAYER_STRESS_TEST
+/* Interval to check what to do next with the stress checker, in milliseconds */
#define STRESS_TEST_CHECK_INTERVAL 20
class Command
#define STRESS_TEST_CHECK_INTERVAL 20
class Command
@@
-336,6
+337,7
@@
public:
++_current_command;
break;
case Command::WAIT:
++_current_command;
break;
case Command::WAIT:
+ /* int_param here is the number of milliseconds to wait */
if (_wait_remaining) {
_wait_remaining = *_wait_remaining - STRESS_TEST_CHECK_INTERVAL;
if (_wait_remaining < 0) {
if (_wait_remaining) {
_wait_remaining = *_wait_remaining - STRESS_TEST_CHECK_INTERVAL;
if (_wait_remaining < 0) {
@@
-1138,6
+1140,7
@@
private:
wxTimer _timer;
list<Command> _commands;
list<Command>::const_iterator _current_command;
wxTimer _timer;
list<Command> _commands;
list<Command>::const_iterator _current_command;
+ /** Remaining time that the script must wait, in milliseconds */
optional<int> _wait_remaining;
#endif
};
optional<int> _wait_remaining;
#endif
};