vlc/vlc-3.0 | branch: master | Thomas Guillem <tho...@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 <tho...@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

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to