Commit d418c28e authored by Thomas Guillem's avatar Thomas Guillem

vout: ios: remove useless propagateDimensionsToVoutCore call

This is already done from the reshap method that is called from glESView
initialisation.
parent 71cbce51
......@@ -229,9 +229,6 @@ static int Open(vlc_object_t *this)
vd->display = PictureDisplay;
vd->control = Control;
/* forward our dimensions to the vout core */
[sys->glESView performSelectorOnMainThread:@selector(propagateDimensionsToVoutCore) withObject:nil waitUntilDone:YES];
/* */
[[NSNotificationCenter defaultCenter] addObserver:sys->glESView
selector:@selector(applicationStateChanged:)
......@@ -752,15 +749,4 @@ static void GLESSwap(vlc_gl_t *gl)
return YES;
}
- (void)propagateDimensionsToVoutCore
{
CGFloat scaleFactor;
CGSize viewSize;
@synchronized(_voutDisplay->sys->viewContainer) {
scaleFactor = _voutDisplay->sys->viewContainer.contentScaleFactor;
viewSize = _voutDisplay->sys->viewContainer.bounds.size;
}
vout_display_SendEventDisplaySize(_voutDisplay, viewSize.width * scaleFactor, viewSize.height * scaleFactor);
}
@end
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