Refactor MediaInfo
This commit is contained in:
parent
9dd4a82e04
commit
0ef31fc19d
|
@ -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 {
|
public static Map<StreamKind, List<Map<String, String>>> snapshot(File file) throws IOException {
|
||||||
try (MediaInfo mi = new MediaInfo()) {
|
try (MediaInfo mi = new MediaInfo().open(file)) {
|
||||||
return mi.open(file).snapshot();
|
return mi.snapshot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue