浏览代码

VLCPlaybackService: replace videoCropGeometry by setCropRatio

Alexandre Janniaux 5 年之前
父节点
当前提交
3a73512440
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Sources/VLCPlaybackService.m

+ 3 - 3
Sources/VLCPlaybackService.m

@@ -257,7 +257,7 @@ NSString *const VLCPlaybackServicePlaybackPositionUpdated = @"VLCPlaybackService
 
     _currentAspectRatio = VLCAspectRatioDefault;
     _mediaPlayer.videoAspectRatio = NULL;
-    _mediaPlayer.videoCropGeometry = NULL;
+    [_mediaPlayer setCropRatioWithNumerator:0 denominator:0];
 
     [[self remoteControlService] subscribeToRemoteCommands];
 
@@ -859,7 +859,7 @@ NSString *const VLCPlaybackServicePlaybackPositionUpdated = @"VLCPlaybackService
         case VLCAspectRatioDefault:
             _mediaPlayer.scaleFactor = 0;
             _mediaPlayer.videoAspectRatio = NULL;
-            _mediaPlayer.videoCropGeometry = NULL;
+            [_mediaPlayer setCropRatioWithNumerator:0 denominator:0];
             break;
         case VLCAspectRatioFillToScreen:
             // Reset aspect ratio only with aspectRatio button since we want to keep
@@ -871,7 +871,7 @@ NSString *const VLCPlaybackServicePlaybackPositionUpdated = @"VLCPlaybackService
         case VLCAspectRatioSixteenToTen:
         case VLCAspectRatioSixteenToNine:
             _mediaPlayer.scaleFactor = 0;
-            _mediaPlayer.videoCropGeometry = NULL;
+            [_mediaPlayer setCropRatioWithNumerator:0 denominator:0];
             _mediaPlayer.videoAspectRatio = (char *)[[self stringForAspectRatio:_currentAspectRatio] UTF8String];
     }