diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-15 22:34:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-15 22:34:33 +0000 |
| commit | acc9e7c26a5e5659e49f238cda24ff400e587350 (patch) | |
| tree | 9d6ecb363ce1d193ca7a88f58b8ea580ddfaf0c0 /src | |
| parent | 8787bdd5b49150a46ca9ed554c06fd7caca98cce (diff) | |
Fix scaling when changing crop.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/ffmpeg_player.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/ffmpeg_player.cc b/src/wx/ffmpeg_player.cc index 8273687ad..4cba3de23 100644 --- 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; + allocate_buffer_and_scaler (); convert_frame (); update_panel (); } @@ -361,6 +362,7 @@ FFmpegPlayer::set_bottom_crop (int b) { _bottom_crop_in_source = b; + allocate_buffer_and_scaler (); convert_frame (); update_panel (); } @@ -370,6 +372,7 @@ FFmpegPlayer::set_left_crop (int l) { _left_crop_in_source = l; + allocate_buffer_and_scaler (); convert_frame (); update_panel (); } @@ -379,6 +382,7 @@ FFmpegPlayer::set_right_crop (int r) { _right_crop_in_source = r; + allocate_buffer_and_scaler (); convert_frame (); update_panel (); } @@ -387,8 +391,8 @@ void FFmpegPlayer::set_ratio (float r) { _ratio = r; - allocate_buffer_and_scaler (); + allocate_buffer_and_scaler (); convert_frame (); update_panel (); } |
