瀏覽代碼

vpc: add debug logging

Felix Paul Kühne 9 年之前
父節點
當前提交
b47de27355
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Sources/VLCPlaybackController.m

+ 4 - 1
Sources/VLCPlaybackController.m

@@ -187,8 +187,10 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
 
 - (void)startPlayback
 {
-    if (_playerIsSetup)
+    if (_playerIsSetup) {
+        APLog(@"%s: player is already setup, bailing out", __PRETTY_FUNCTION__);
         return;
+    }
     _activeSession = YES;
 
 #if TARGET_OS_IOS
@@ -200,6 +202,7 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
     _aspectRatios = @[@"DEFAULT", @"FILL_TO_SCREEN", @"4:3", @"16:9", @"16:10", @"2.21:1"];
 
     if (!self.url && !self.mediaList) {
+        APLog(@"%s: no URL and no media list set, stopping playback", __PRETTY_FUNCTION__);
         [self stopPlayback];
         return;
     }