projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yet more waking (in hash computation).
[dcpomatic.git]
/
src
/
lib
/
writer.cc
diff --git
a/src/lib/writer.cc
b/src/lib/writer.cc
index 9a0f83a22a5c184d68c3b5c5bc07789fe9fe3bca..48f40334ab98825478545412a60d309da6ea98dd 100644
(file)
--- a/
src/lib/writer.cc
+++ b/
src/lib/writer.cc
@@
-269,8
+269,11
@@
Writer::write (shared_ptr<const AudioBuffers> audio, DCPTime const time)
/* Easy case: we can write all the audio to this reel */
_audio_reel->write (audio);
t = end;
/* Easy case: we can write all the audio to this reel */
_audio_reel->write (audio);
t = end;
+ } else if (_audio_reel->period().to <= t) {
+ /* This reel is entirely before the start of our audio; just skip the reel */
+ ++_audio_reel;
} else {
} else {
- /*
S
plit the audio into two and write the first part */
+ /*
This audio is over a reel boundary; s
plit the audio into two and write the first part */
DCPTime part_lengths[2] = {
_audio_reel->period().to - t,
end - _audio_reel->period().to
DCPTime part_lengths[2] = {
_audio_reel->period().to - t,
end - _audio_reel->period().to
@@
-777,4
+780,7
@@
Writer::set_digest_progress (Job* job, float progress)
}
job->set_progress (min_progress);
}
job->set_progress (min_progress);
+
+ Waker waker;
+ waker.nudge ();
}
}