Commit 1adcfa2f authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Fix saving playback progress for media containing spaces

parent 4311169c
2.7.1: 2.7.1:
------ ------
* Improved SMB compatibility
* UPnP reliability improvements, notably with Kodi
* Stability improvements * Stability improvements
* Fixed issues unlocking the app when a passcode was never set * Fixed issues unlocking the app when a passcode was never set
* Fixed repeat one / repeat list * 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: 2.7.0:
------ ------
......
...@@ -432,8 +432,10 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont ...@@ -432,8 +432,10 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
if (files.count > 0) if (files.count > 0)
fileItem = files.firstObject; fileItem = files.firstObject;
if (!fileItem) if (!fileItem) {
APLog(@"couldn't find file, not saving playback progress");
return; return;
}
@try { @try {
float position = _mediaPlayer.position; float position = _mediaPlayer.position;
...@@ -441,9 +443,6 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont ...@@ -441,9 +443,6 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
fileItem.lastAudioTrack = @(_mediaPlayer.currentAudioTrackIndex); fileItem.lastAudioTrack = @(_mediaPlayer.currentAudioTrackIndex);
fileItem.lastSubtitleTrack = @(_mediaPlayer.currentVideoSubTitleIndex); fileItem.lastSubtitleTrack = @(_mediaPlayer.currentVideoSubTitleIndex);
if ([fileItem isKindOfType:kMLFileTypeAudio])
return;
if (position > .95) if (position > .95)
return; return;
......
...@@ -13,7 +13,7 @@ SKIPLIBVLCCOMPILATION=no ...@@ -13,7 +13,7 @@ SKIPLIBVLCCOMPILATION=no
TVOS=no TVOS=no
TESTEDVLCKITHASH=6012c098 TESTEDVLCKITHASH=6012c098
TESTEDMEDIALIBRARYKITHASH=7046f09e TESTEDMEDIALIBRARYKITHASH=a92e78ce
usage() usage()
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment