Commit 18acb2b0 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx vout: fix framing issue when video opens in detached view

(cherry picked from commit 8405c078)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent b4a5fc7d
......@@ -188,7 +188,7 @@ static int Open (vlc_object_t *this)
{
NSView *parentView = container;
[parentView performSelectorOnMainThread:@selector(addSubview:) withObject:sys->glView waitUntilDone:NO];
[sys->glView performSelectorOnMainThread:@selector(setFrameWithValue:) withObject:[NSValue valueWithRect:[parentView bounds]] waitUntilDone:NO];
[sys->glView performSelectorOnMainThread:@selector(setFrameToBoundsOfView:) withObject:[NSValue valueWithPointer:parentView] waitUntilDone:NO];
}
else
{
......@@ -508,9 +508,10 @@ static void OpenglSwap (vlc_gl_t *gl)
/**
* Gets called by the Open() method.
*/
- (void)setFrameWithValue:(NSValue *)value
- (void)setFrameToBoundsOfView:(NSValue *)value
{
[self setFrame:[value rectValue]];
NSView *parentView = [value pointerValue];
[self setFrame:[parentView bounds]];
}
/**
......
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