Skip to content

Commit

Permalink
Fix meta extra names
Browse files Browse the repository at this point in the history
  • Loading branch information
caprica committed Feb 2, 2024
1 parent 91abecf commit 6e52b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/uk/co/caprica/vlcj/media/MetaApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public List<String> getExtraNames() {
PointerByReference namesPointer = new PointerByReference();
int namesCount = libvlc_media_get_meta_extra_names(mediaInstance, namesPointer);
List<String> result = new ArrayList<>(namesCount);
Pointer[] namePointers = namesPointer.getPointer().getPointerArray(0L, namesCount);
Pointer[] namePointers = namesPointer.getValue().getPointerArray(0L, namesCount);
for (Pointer namePointer : namePointers) {
String name = NativeString.copyNativeString(namePointer);
result.add(getExtra(name));
result.add(name);
}
libvlc_media_meta_extra_names_release(namesPointer.getValue(), namesCount);
return result;
Expand Down

0 comments on commit 6e52b68

Please sign in to comment.