}
String nativeVersion = instance.libvlc_get_version();
Logger.info("vlc: {}, changeset {}", nativeVersion, LibVlc.INSTANCE.libvlc_get_changeset());
Logger.info("libvlc: {}", getNativeLibraryPath(instance));
if(requiredVersion != null) {
Version actualVersion;
try {
actualVersion = new Version(nativeVersion);
}
catch(Exception e) {
Logger.error("Unable to parse native library version {} because of {}", nativeVersion, e);
actualVersion = null;
}
if(actualVersion != null) {
if(!actualVersion.atLeast(requiredVersion)) {
Logger.fatal("This version of vlcj requires version {} or later of libvlc, found too old version {}", requiredVersion, actualVersion);
throw new LibVlcOutOfDateException(requiredVersion, actualVersion);
}
}
else {