Kaynağa Gözat

print path when file not found

master
Jonathan Cobb 3 yıl önce
ebeveyn
işleme
af6d3af4ba
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      src/main/java/jvc/model/info/JMediaInfo.java

+ 5
- 1
src/main/java/jvc/model/info/JMediaInfo.java Dosyayı Görüntüle

@@ -82,11 +82,15 @@ public class JMediaInfo {
.setWidth(image.width());

} else {
return die("initFormat: no media tracks could be found in file");
return die("initFormat: no media tracks could be found in file: "+ref());
}
return format;
}

public String ref() {
return emptyMedia() ? "(null media)" : empty(getMedia().getRef()) ? "(null ref)" : getMedia().getRef();
}

public BigDecimal duration() {
if (emptyMedia()) return ZERO;



Yükleniyor…
İptal
Kaydet