Commit 95fc07a9 authored by David Fuhrmann's avatar David Fuhrmann

macosx vout: small cleanup

(cherry picked from commit bbb54a75616ca1bffa6860bf23fa7cdc50e41d85)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent d70ddc7b
......@@ -343,8 +343,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS; // this is okay, since the event will occur again when we have a window
NSSize windowMinSize = [o_window minSize];
int i_width = 0;
int i_height = 0;
const vout_display_cfg_t *cfg;
const video_format_t *source;
......@@ -379,9 +377,9 @@ static int Control (vout_display_t *vd, int query, va_list ap)
if (cfg_tmp.display.height < 70)
cfg_tmp.display.height = 70;
NSRect bounds = [sys->glView bounds];
if (!config_GetInt(vd, "macosx-video-autoresize"))
{
NSRect bounds = [sys->glView bounds];
cfg_tmp.display.width = bounds.size.width;
cfg_tmp.display.height = bounds.size.height;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment