|
@@ -304,8 +304,8 @@ extension MediaLibraryService {
|
|
|
|
|
|
func savePlaybackState(from player: VLCPlaybackController) {
|
|
|
|
|
|
- let media = player.currentlyPlayingMedia
|
|
|
- guard let mlMedia = fetchMedia(with: media.url.absoluteURL) else {
|
|
|
+ let media: VLCMedia? = player.currentlyPlayingMedia
|
|
|
+ guard let mlMedia = fetchMedia(with: media?.url.absoluteURL) else {
|
|
|
// we opened a url and not a local file
|
|
|
return
|
|
|
}
|