summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-08 20:37:53 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-08 20:37:53 +0100
commitfd040c2bd27fde35424a384174ecb56c643764cd (patch)
tree074906414d27d93a21224f110129a7e857a6ee04 /src/lib/player.cc
parent72d36df1174810d8d871a06d085b81b1652edf67 (diff)
Some tidying up. Do encode progress in the writer to improve progress bar movement with still-image DCPs (#130).
Diffstat (limited to 'src/lib/player.cc')
-rw-r--r--src/lib/player.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 68a962cdd..95036cfe0 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -122,18 +122,6 @@ Player::pass ()
}
void
-Player::set_progress (shared_ptr<Job> job)
-{
- /* Assume progress can be divined from how far through the video we are */
-
- if (_video_decoder >= _video_decoders.size() || !_playlist->video_length()) {
- return;
- }
-
- job->set_progress ((_video_start[_video_decoder] + _video_decoders[_video_decoder]->video_frame()) / _playlist->video_length ());
-}
-
-void
Player::process_video (shared_ptr<const Image> i, bool same, shared_ptr<Subtitle> s, double t)
{
Video (i, same, s, _video_start[_video_decoder] + t);