Pārlūkot izejas kodu

Fix bag of small fixes

Felix Paul Kühne 9 gadi atpakaļ
vecāks
revīzija
0e801d145d

+ 1 - 1
Apple-TV/VLCAboutViewController.m

@@ -89,7 +89,7 @@
 - (void)startAnimationTimer
 {
     [startAnimationTimer invalidate];
-    startAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(startAnimation) userInfo:nil repeats:NO];
+    startAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:4.0 target:self selector:@selector(startAnimation) userInfo:nil repeats:NO];
 }
 
 - (void)stopAnimation

+ 1 - 1
Apple-TV/VLCOpenNetworkStreamTVViewController.m

@@ -28,7 +28,7 @@
 
 - (NSString *)title
 {
-    return NSLocalizedString(@"OPEN_NETWORK", nil);
+    return NSLocalizedString(@"NETWORK_TITLE", nil);
 }
 
 - (void)viewDidLoad {

+ 13 - 10
Sources/VLCHTTPConnection.m

@@ -583,21 +583,24 @@
     if (!_playbackStarted) {
         if (percentage >= 10) {
             _playbackStarted = YES;
-
-            APLog(@"Starting playback of %@", _filepath);
-            VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
-            [vpc playURL:[NSURL fileURLWithPath:_filepath] successCallback:nil errorCallback:nil];
-
-            VLCFullscreenMovieTVViewController *moviewVC = [VLCFullscreenMovieTVViewController fullscreenMovieTVViewController];
-            [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:moviewVC
-                                                                                         animated:YES
-                                                                                       completion:nil];
-
+            [self performSelectorOnMainThread:@selector(startPlaybackOfPath:) withObject:_filepath waitUntilDone:NO];
         }
     }
 #endif
 }
 
+- (void)startPlaybackOfPath:(NSString *)path
+{
+    APLog(@"Starting playback of %@", path);
+    VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
+    [vpc playURL:[NSURL fileURLWithPath:path] successCallback:nil errorCallback:nil];
+
+    VLCFullscreenMovieTVViewController *moviewVC = [VLCFullscreenMovieTVViewController fullscreenMovieTVViewController];
+    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:moviewVC
+                                                                                 animated:YES
+                                                                               completion:nil];
+}
+
 //-----------------------------------------------------------------
 #pragma mark multipart form data parser delegate