Commit c29f1105 authored by Carola's avatar Carola

MediaLibraryService: Remove assert because it's a valid state to have nil

(closes #523)
parent 48462549
......@@ -314,8 +314,7 @@ extension MediaLibraryService {
@objc func fetchMedia(with mrl: URL?) -> VLCMLMedia? {
guard let mrl = mrl else {
assertionFailure("MedialibraryService: no mrl")
return nil
return nil //Happens when we have a URL or there is no currently playing file
}
return medialib.media(withMrl: mrl)
}
......
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