[vlc-devel] [PATCH] display: get rid of crop_saved
Steve Lhomme
robux4 at videolabs.io
Wed Apr 5 14:09:19 CEST 2017
it's always 0:0
---
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 3a962b524b..16a10b717b 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;
--
2.11.1
More information about the vlc-devel
mailing list