浏览代码

Fix to make wrong playlist entries more obvious in the log file.
Workaround for a full freeze when VLC doesnt find a file.
TODO: VLC API to detect those cases and show a error message and play next
track

LH 8 年之前
父节点
当前提交
3514bb055f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      izpl-shared/src/main/java/de/nplusc/izc/iZpl/Utils/shared/PLFileIO.java

+ 4 - 0
izpl-shared/src/main/java/de/nplusc/izc/iZpl/Utils/shared/PLFileIO.java

@@ -239,6 +239,10 @@ public class PLFileIO
                                 {
                                     ln=plbd+ln;//relative pfade absolutisieren
                                 }
+                                if(!new File(ln).exists())
+                                {
+                                    l.warn("Parser warning on line {} of file {}: File {} does not exist",lne,path,ln);
+                                }
                                 itm.setPath(ln);
                                 itm.setPrefix(itmprefix.toArray(new String[]{}));
                                 itm.setInlineCOmmentLines(itmprefix.toArray(new String[]{}));