From 3ae34b4835dc1cd909f5651f6c7df509cf0c8bb4 Mon Sep 17 00:00:00 2001 From: Julius Vincent Babies Date: Wed, 26 Feb 2025 08:02:17 +0100 Subject: [PATCH 1/3] Replaced System Class Loader --- isoparser/pom.xml | 9 ++++----- .../main/java/org/mp4parser/PropertyBoxParserImpl.java | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/isoparser/pom.xml b/isoparser/pom.xml index 3725b4c76..5634d5c20 100644 --- a/isoparser/pom.xml +++ b/isoparser/pom.xml @@ -1,13 +1,12 @@ 4.0.0 - org.mp4parser isoparser jar ISO Parser A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...) https://github.com/sannies/mp4parser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT mp4parser-project org.mp4parser @@ -116,19 +115,19 @@ junit junit - 4.12 + 4.13.1 provided commons-io commons-io - 2.5 + 2.14.0 test commons-codec commons-codec - 1.10 + 1.13 test diff --git a/isoparser/src/main/java/org/mp4parser/PropertyBoxParserImpl.java b/isoparser/src/main/java/org/mp4parser/PropertyBoxParserImpl.java index 14980cf32..b6b0747fe 100644 --- a/isoparser/src/main/java/org/mp4parser/PropertyBoxParserImpl.java +++ b/isoparser/src/main/java/org/mp4parser/PropertyBoxParserImpl.java @@ -45,15 +45,14 @@ public PropertyBoxParserImpl(String... customProperties) { if (BOX_MAP_CACHE != null) { mapping = new Properties(BOX_MAP_CACHE); } else { - InputStream is = ClassLoader.getSystemResourceAsStream("isoparser2-default.properties"); + ClassLoader cl = Thread.currentThread().getContextClassLoader(); + if (cl == null) cl = ClassLoader.getSystemClassLoader(); + + InputStream is = cl.getResourceAsStream("isoparser2-default.properties"); try { mapping = new Properties(); try { mapping.load(is); - ClassLoader cl = Thread.currentThread().getContextClassLoader(); - if (cl == null) { - cl = ClassLoader.getSystemClassLoader(); - } Enumeration enumeration = cl.getResources("isoparser-custom.properties"); while (enumeration.hasMoreElements()) { From d12bf9fae883ad19f267540faefad19694220551 Mon Sep 17 00:00:00 2001 From: Julius Vincent Babies Date: Wed, 26 Feb 2025 08:07:48 +0100 Subject: [PATCH 2/3] Bumped up version --- isoparser/pom.xml | 2 +- muxer/pom.xml | 6 +++--- pom.xml | 2 +- streaming/pom.xml | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/isoparser/pom.xml b/isoparser/pom.xml index 5634d5c20..84517a06b 100644 --- a/isoparser/pom.xml +++ b/isoparser/pom.xml @@ -10,7 +10,7 @@ mp4parser-project org.mp4parser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT UTF-8 diff --git a/muxer/pom.xml b/muxer/pom.xml index 94ccb426a..ad837c281 100644 --- a/muxer/pom.xml +++ b/muxer/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.mp4parser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT muxer File Muxer https://github.com/sannies/mp4parser @@ -12,7 +12,7 @@ mp4parser-project org.mp4parser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT UTF-8 @@ -21,7 +21,7 @@ org.mp4parser isoparser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT junit diff --git a/pom.xml b/pom.xml index ca555f665..f5eb75e7f 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.mp4parser mp4parser-project pom - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT MP4 Parser Project MP4 Parser Project (parent) diff --git a/streaming/pom.xml b/streaming/pom.xml index dc14f3fba..df1c2bd61 100644 --- a/streaming/pom.xml +++ b/streaming/pom.xml @@ -3,12 +3,12 @@ 4.0.0 org.mp4parser streaming - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT org.mp4parser isoparser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT junit @@ -19,7 +19,7 @@ org.mp4parser muxer - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT test @@ -38,7 +38,7 @@ mp4parser-project org.mp4parser - 1.9.57-SNAPSHOT + 1.9.58-SNAPSHOT From 5624152c638c7935ec2e3c25e1874812e2a5b184 Mon Sep 17 00:00:00 2001 From: Julius Vincent Babies Date: Thu, 27 Feb 2025 13:59:32 +0100 Subject: [PATCH 3/3] Revert build related changes --- isoparser/pom.xml | 11 ++++++----- muxer/pom.xml | 6 +++--- pom.xml | 2 +- streaming/pom.xml | 8 ++++---- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/isoparser/pom.xml b/isoparser/pom.xml index 84517a06b..3725b4c76 100644 --- a/isoparser/pom.xml +++ b/isoparser/pom.xml @@ -1,16 +1,17 @@ 4.0.0 + org.mp4parser isoparser jar ISO Parser A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...) https://github.com/sannies/mp4parser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT mp4parser-project org.mp4parser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT UTF-8 @@ -115,19 +116,19 @@ junit junit - 4.13.1 + 4.12 provided commons-io commons-io - 2.14.0 + 2.5 test commons-codec commons-codec - 1.13 + 1.10 test diff --git a/muxer/pom.xml b/muxer/pom.xml index ad837c281..94ccb426a 100644 --- a/muxer/pom.xml +++ b/muxer/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.mp4parser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT muxer File Muxer https://github.com/sannies/mp4parser @@ -12,7 +12,7 @@ mp4parser-project org.mp4parser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT UTF-8 @@ -21,7 +21,7 @@ org.mp4parser isoparser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT junit diff --git a/pom.xml b/pom.xml index f5eb75e7f..ca555f665 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.mp4parser mp4parser-project pom - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT MP4 Parser Project MP4 Parser Project (parent) diff --git a/streaming/pom.xml b/streaming/pom.xml index df1c2bd61..dc14f3fba 100644 --- a/streaming/pom.xml +++ b/streaming/pom.xml @@ -3,12 +3,12 @@ 4.0.0 org.mp4parser streaming - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT org.mp4parser isoparser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT junit @@ -19,7 +19,7 @@ org.mp4parser muxer - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT test @@ -38,7 +38,7 @@ mp4parser-project org.mp4parser - 1.9.58-SNAPSHOT + 1.9.57-SNAPSHOT