Forráskód Böngészése

Fix saving playback progress for media containing spaces

Felix Paul Kühne 9 éve
szülő
commit
1adcfa2fe0
3 módosított fájl, 7 hozzáadás és 7 törlés
  1. 3 2
      NEWS
  2. 3 4
      Sources/VLCPlaybackController.m
  3. 1 1
      compileVLCforiOS.sh

+ 3 - 2
NEWS

@@ -1,10 +1,11 @@
 2.7.1:
 ------
-* Improved SMB compatibility
-* UPnP reliability improvements, notably with Kodi
 * Stability improvements
 * Fixed issues unlocking the app when a passcode was never set
 * Fixed repeat one / repeat list
+* Fixed saving playback progress for files whose names contain spaces or umlauts
+* Improved SMB compatibility
+* UPnP reliability improvements, notably with Kodi
 
 2.7.0:
 ------

+ 3 - 4
Sources/VLCPlaybackController.m

@@ -432,8 +432,10 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
     if (files.count > 0)
         fileItem = files.firstObject;
 
-    if (!fileItem)
+    if (!fileItem) {
+        APLog(@"couldn't find file, not saving playback progress");
         return;
+    }
 
     @try {
         float position = _mediaPlayer.position;
@@ -441,9 +443,6 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
         fileItem.lastAudioTrack = @(_mediaPlayer.currentAudioTrackIndex);
         fileItem.lastSubtitleTrack = @(_mediaPlayer.currentVideoSubTitleIndex);
 
-        if ([fileItem isKindOfType:kMLFileTypeAudio])
-            return;
-
         if (position > .95)
             return;
 

+ 1 - 1
compileVLCforiOS.sh

@@ -13,7 +13,7 @@ SKIPLIBVLCCOMPILATION=no
 TVOS=no
 
 TESTEDVLCKITHASH=6012c098
-TESTEDMEDIALIBRARYKITHASH=7046f09e
+TESTEDMEDIALIBRARYKITHASH=a92e78ce
 
 usage()
 {