hasProperty() is always FALSE
Posted: 07 Nov 2014, 16:26
I am trying to rename my videos with language information, or show the audio streams count when no language info is available. This is imposible, hasPropertiy() is broken as this example shows:
{ (audio.hasProperty("language")) ? "YES" : "NO " + audio.language }
if defined (ie: language=ru), it prints: "NO ru"
if not defined, it prints nothing (throws an exception trying to get audio.language)
That is, in both cases audio.hasProperty("language") is FALSE, regardless of .language being defined or not.
Is this a bug where?
Tested both, 4.5 and 4.5.2 with
openjdk version "1.8.0_40"
OpenJDK Runtime Environment (build 1.8.0_40-b10)
OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode)
{ (audio.hasProperty("language")) ? "YES" : "NO " + audio.language }
if defined (ie: language=ru), it prints: "NO ru"
if not defined, it prints nothing (throws an exception trying to get audio.language)
That is, in both cases audio.hasProperty("language") is FALSE, regardless of .language being defined or not.
Is this a bug where?
Tested both, 4.5 and 4.5.2 with
openjdk version "1.8.0_40"
OpenJDK Runtime Environment (build 1.8.0_40-b10)
OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode)