[vlc-commits] vout: ios: remove useless propagateDimensionsToVoutCore call

Thomas Guillem git at videolan.org
Wed Mar 7 15:47:26 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar  6 12:08:14 2018 +0100| [a91170dcaa42d5cf0a94cf4dd2b22ecb845765f2] | committer: Thomas Guillem

vout: ios: remove useless propagateDimensionsToVoutCore call

This is already done from the reshap method that is called from glESView
initialisation.

(cherry picked from commit d418c28e8ffd36484fc2966591bac7d623a67647)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a91170dcaa42d5cf0a94cf4dd2b22ecb845765f2
---

 modules/video_output/ios.m | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index d8f038902d..5da6c2382a 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -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



More information about the vlc-commits mailing list