[vlc-commits] display: get rid of crop_saved
Steve Lhomme
git at videolan.org
Fri Apr 7 14:27:14 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Apr 5 13:32:12 2017 +0200| [461669f3c900d53234c38d947ad0a3cbea477a4a] | committer: Jean-Baptiste Kempf
display: get rid of crop_saved
it's always 0:0
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=461669f3c900d53234c38d947ad0a3cbea477a4a
---
src/video_output/display.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 61e1305..824f9b6 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -346,11 +346,6 @@ typedef struct {
unsigned width_saved;
unsigned height_saved;
- struct {
- unsigned num;
- unsigned den;
- } crop_saved;
-
/* */
bool ch_display_filled;
bool is_display_filled;
@@ -1026,8 +1021,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
msg_Err(vd, "Failed to change source crop TODO implement crop at core");
source = vd->source;
- crop_num = osys->crop_saved.num;
- crop_den = osys->crop_saved.den;
+ crop_num = 0;
+ crop_den = 0;
/* FIXME implement cropping in the core if not supported by the
* vout module (easy)
*/
@@ -1280,8 +1275,6 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
osys->crop.top = 0;
osys->crop.right = 0;
osys->crop.bottom = 0;
- osys->crop_saved.num = 0;
- osys->crop_saved.den = 0;
osys->crop.num = 0;
osys->crop.den = 0;
More information about the vlc-commits
mailing list