Improved error messages for sub bindings (e.g. audio.FormatProfile => undefined)

This commit is contained in:
Reinhard Pointner 2017-06-16 16:51:06 +08:00
parent 3f6d9ffd1f
commit 85d571a003
1 changed files with 1 additions and 1 deletions

View File

@ -1244,7 +1244,7 @@ public class MediaBindingBean {
}
private List<AssociativeScriptObject> createMediaInfoBindings(StreamKind kind) {
return getMediaInfo().snapshot().get(kind).stream().map(AssociativeScriptObject::new).collect(toList());
return getMediaInfo().snapshot().get(kind).stream().map(m -> new AssociativeScriptObject(m, this::undefined)).collect(toList());
}
private String[] getFileNames(File file) {