summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-01 22:49:31 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-01 22:49:31 +0100
commitdb468a15e50c8491d4b8462ad0676be905f49065 (patch)
tree4b6d93f0916264f9cf67d11440e5fe491ab58a3a /src/lib/video_decoder.cc
parent623845efac0831aa1e2df6b79c4e879a7b901c69 (diff)
Various bits.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index 33dd433ea..32b06085f 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -29,7 +29,7 @@
using boost::shared_ptr;
using boost::optional;
-VideoDecoder::VideoDecoder (shared_ptr<const Film> f, shared_ptr<VideoContent> c)
+VideoDecoder::VideoDecoder (shared_ptr<const Film> f)
: Decoder (f)
, _video_frame (0)
, _last_source_time (0)
@@ -106,10 +106,7 @@ VideoDecoder::set_progress (Job* j) const
{
assert (j);
-#if 0
- XXX
- if (_film->length()) {
- j->set_progress (float (_video_frame) / _film->length().get());
+ if (_film->video_length()) {
+ j->set_progress (float (_video_frame) / _film->video_length());
}
-#endif
}