Преглед изворни кода

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];
     }