1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Refactor MediaInfo

This commit is contained in:
Reinhard Pointner 2016-08-10 04:13:39 +08:00
parent 9dd4a82e04
commit 0ef31fc19d

View File

@ -248,12 +248,9 @@ public class MediaInfo implements Closeable {
}
}
/**
* Helper for easy usage
*/
public static Map<StreamKind, List<Map<String, String>>> snapshot(File file) throws IOException {
try (MediaInfo mi = new MediaInfo()) {
return mi.open(file).snapshot();
try (MediaInfo mi = new MediaInfo().open(file)) {
return mi.snapshot();
}
}