missing usage of autoLoadEmbeddedSwfs setting added

This commit is contained in:
honfika@gmail.com
2014-11-09 17:28:54 +01:00
parent 79820e285f
commit ea56363c02

View File

@@ -85,12 +85,14 @@ public class DefineBinaryDataTag extends CharacterTag {
reserved = sis.readUI32("reserved");
binaryData = sis.readBytesEx(sis.available(), "binaryData");
try {
SWF bswf = new SWF(new ByteArrayInputStream(binaryData), Configuration.parallelSpeedUp.get());
bswf.fileTitle = "(SWF Data)";
innerSwf = bswf;
} catch (IOException | InterruptedException ex) {
//ignore
if (Configuration.autoLoadEmbeddedSwfs.get()) {
try {
SWF bswf = new SWF(new ByteArrayInputStream(binaryData), Configuration.parallelSpeedUp.get());
bswf.fileTitle = "(SWF Data)";
innerSwf = bswf;
} catch (IOException | InterruptedException ex) {
//ignore
}
}
}