Explorar o código

VLCPlaybackController: replace another occurance of deprecated API

Felix Paul Kühne %!s(int64=8) %!d(string=hai) anos
pai
achega
386ebd55cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/VLCPlaybackController.m

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -264,7 +264,7 @@ VLCMediaDelegate>
     else
         [_mediaPlayer setDeinterlaceFilter:nil];
     if (self.pathToExternalSubtitlesFile)
-        [_mediaPlayer openVideoSubTitlesFromFile:self.pathToExternalSubtitlesFile];
+        [_mediaPlayer addPlaybackSlave:[NSURL fileURLWithPath:self.pathToExternalSubtitlesFile] type:VLCMediaPlaybackSlaveTypeSubtitle enforce:YES];
 
     VLCMedia *media;
     if (_mediaList) {