summaryrefslogtreecommitdiff
path: root/src/lib/writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-19 00:14:38 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-19 00:14:38 +0100
commite5da5518951e91f7bfb80718c9cf546e3ece059c (patch)
tree18f92aa4b492b60f339773b33a138311fdc3d41b /src/lib/writer.cc
parent23cf9a87b290c32bfef24c6674734bed608d13c6 (diff)
Basics of making loop do something.
Diffstat (limited to 'src/lib/writer.cc')
-rw-r--r--src/lib/writer.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index a9c920c81..b3d2fdb1c 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -204,8 +204,10 @@ try
}
lock.lock ();
- if (_film->length ()) {
- _job->set_progress (float(_full_written + _fake_written + _repeat_written) / _film->time_to_video_frames (_film->length()));
+ if (_film->length_with_loop()) {
+ _job->set_progress (
+ float (_full_written + _fake_written + _repeat_written) / _film->time_to_video_frames (_film->length_with_loop())
+ );
}
++_last_written_frame;