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

Fix saving playback progress for media containing spaces

parent 4311169c
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:
------
......
......@@ -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;
......
......@@ -13,7 +13,7 @@ SKIPLIBVLCCOMPILATION=no
TVOS=no
TESTEDVLCKITHASH=6012c098
TESTEDMEDIALIBRARYKITHASH=7046f09e
TESTEDMEDIALIBRARYKITHASH=a92e78ce
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