From 85d571a0031bb5a4dcfe0eb523b1b7bbcdd96374 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 16 Jun 2017 16:51:06 +0800 Subject: [PATCH] Improved error messages for sub bindings (e.g. audio.FormatProfile => undefined) --- source/net/filebot/format/MediaBindingBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 6445b83d..b08feefb 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -1244,7 +1244,7 @@ public class MediaBindingBean { } private List 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) {