projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8787bdd
)
Fix scaling when changing crop.
author
Carl Hetherington
<cth@carlh.net>
Sat, 15 Dec 2012 22:34:33 +0000
(22:34 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 15 Dec 2012 22:34:33 +0000
(22:34 +0000)
src/wx/ffmpeg_player.cc
patch
|
blob
|
history
diff --git
a/src/wx/ffmpeg_player.cc
b/src/wx/ffmpeg_player.cc
index 8273687adc44153f9ab659fe5605297c4f0df294..4cba3de23cbecdb2dfe1d2a74985f540317402ed 100644
(file)
--- a/
src/wx/ffmpeg_player.cc
+++ b/
src/wx/ffmpeg_player.cc
@@
-352,6
+352,7
@@
FFmpegPlayer::set_top_crop (int t)
{
_top_crop_in_source = t;
{
_top_crop_in_source = t;
+ allocate_buffer_and_scaler ();
convert_frame ();
update_panel ();
}
convert_frame ();
update_panel ();
}
@@
-361,6
+362,7
@@
FFmpegPlayer::set_bottom_crop (int b)
{
_bottom_crop_in_source = b;
{
_bottom_crop_in_source = b;
+ allocate_buffer_and_scaler ();
convert_frame ();
update_panel ();
}
convert_frame ();
update_panel ();
}
@@
-370,6
+372,7
@@
FFmpegPlayer::set_left_crop (int l)
{
_left_crop_in_source = l;
{
_left_crop_in_source = l;
+ allocate_buffer_and_scaler ();
convert_frame ();
update_panel ();
}
convert_frame ();
update_panel ();
}
@@
-379,6
+382,7
@@
FFmpegPlayer::set_right_crop (int r)
{
_right_crop_in_source = r;
{
_right_crop_in_source = r;
+ allocate_buffer_and_scaler ();
convert_frame ();
update_panel ();
}
convert_frame ();
update_panel ();
}
@@
-387,8
+391,8
@@
void
FFmpegPlayer::set_ratio (float r)
{
_ratio = r;
FFmpegPlayer::set_ratio (float r)
{
_ratio = r;
- allocate_buffer_and_scaler ();
+ allocate_buffer_and_scaler ();
convert_frame ();
update_panel ();
}
convert_frame ();
update_panel ();
}