projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't truncate active_video_frame_rate to an int otherwise setting fade on non-intege...
[dcpomatic.git]
/
src
/
wx
/
video_panel.cc
diff --git
a/src/wx/video_panel.cc
b/src/wx/video_panel.cc
index 35019d0ca49e403d3a50f86cdfd6939e44b8e6e6..1dc0185ba59e229e778c7b2426c39883a2ae544e 100644
(file)
--- a/
src/wx/video_panel.cc
+++ b/
src/wx/video_panel.cc
@@
-555,8
+555,8
@@
void
VideoPanel::fade_in_changed ()
{
BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_video ()) {
VideoPanel::fade_in_changed ()
{
BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_video ()) {
-
int
const vfr = i->active_video_frame_rate (_parent->film());
- i->video->set_fade_in (_fade_in->get
(vfr).frames_round
(vfr));
+
double
const vfr = i->active_video_frame_rate (_parent->film());
+ i->video->set_fade_in (_fade_in->get
(vfr).frames_round
(vfr));
}
}
}
}
@@
-564,8
+564,8
@@
void
VideoPanel::fade_out_changed ()
{
BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_video ()) {
VideoPanel::fade_out_changed ()
{
BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_video ()) {
-
int
const vfr = i->active_video_frame_rate (_parent->film());
- i->video->set_fade_out (_fade_out->get
(vfr).frames_round
(vfr));
+
double
const vfr = i->active_video_frame_rate (_parent->film());
+ i->video->set_fade_out (_fade_out->get
(vfr).frames_round
(vfr));
}
}
}
}