Commit 8405c078 authored by David Fuhrmann's avatar David Fuhrmann

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

parent 20802866
......@@ -199,7 +199,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
{
......@@ -519,9 +519,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