瀏覽代碼

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

(closes #523)
Carola Nitz 6 年之前
父節點
當前提交
c29f1105ed
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      SharedSources/MediaLibraryService.swift

+ 1 - 2
SharedSources/MediaLibraryService.swift

@@ -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)
     }