/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
DCPTime const len = _film->length ();
- if (len) {
- int const new_slider_position = 4096 * _player->video_position() / len;
+ if (len.get ()) {
+ int const new_slider_position = 4096 * _player->video_position().get() / len.get();
if (new_slider_position != _slider->GetValue()) {
_slider->SetValue (new_slider_position);
}
*/
DCPTime p = _player->video_position() - DCPTime::from_frames (2, _film->video_frame_rate ());
- if (p < 0) {
+ if (p < DCPTime ()) {
p = DCPTime ();
}
if (frequent) {
return;
}
-
+
calculate_sizes ();
fetch_current_frame_again ();
}