[vlc-commits] vout: ios: remove useless performSelectorOnMainThread

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


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

vout: ios: remove useless performSelectorOnMainThread

fetchViewContainer() is already called from the MainThread.

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

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

 modules/video_output/ios.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index 3e3bb15c7f..d8f038902d 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -493,9 +493,7 @@ static void GLESSwap(vlc_gl_t *gl)
             self.frame = viewContainer.bounds;
             [self reshape];
 
-            [sys->viewContainer performSelectorOnMainThread:@selector(addSubview:)
-                                                 withObject:self
-                                              waitUntilDone:YES];
+            [sys->viewContainer addSubview:self];
 
             /* add tap gesture recognizer for DVD menus and stuff */
             sys->tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self



More information about the vlc-commits mailing list