[vlc-commits] macosx vout: small cleanup
David Fuhrmann
git at videolan.org
Fri Apr 20 14:21:02 CEST 2012
vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Apr 20 14:18:24 2012 +0200| [95fc07a96f5738312194ddc129729d641f400505] | committer: David Fuhrmann
macosx vout: small cleanup
(cherry picked from commit bbb54a75616ca1bffa6860bf23fa7cdc50e41d85)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=95fc07a96f5738312194ddc129729d641f400505
---
modules/video_output/macosx.m | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 1ea45f0..7499d8e 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -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;
}
More information about the vlc-commits
mailing list