Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
5e4034db by Petri Hintukainen at 2026-01-30T19:19:50+02:00
BD-J: Drop unused data from TIMark

- - - - -


2 changed files:

- src/libbluray/bdj/java/org/videolan/TIMark.java
- src/libbluray/bdj/native/org_videolan_Libbluray.c


Changes:

=====================================
src/libbluray/bdj/java/org/videolan/TIMark.java
=====================================
@@ -20,13 +20,10 @@
 package org.videolan;
 
 public class TIMark {
-    public TIMark(int index, int type, long start, long duration, long offset, 
int clip) {
+    public TIMark(int index, int type, long start) {
         this.index = index;
         this.type = type;
         this.start = start;
-        this.duration = duration;
-        this.offset = offset;
-        this.clip = clip;
     }
 
     public int getIndex() {
@@ -41,22 +38,6 @@ public class TIMark {
         return start * 100000 / 9;
     }
 
-    public long getDuration() {
-        return duration;
-    }
-
-    public long getDurationNanoseconds() {
-        return duration * 100000 / 9;
-    }
-
-    public long getOffset() {
-        return offset;
-    }
-
-    public int getClipIndex() {
-        return clip;
-    }
-
     public int getType() {
         return type;
     }
@@ -64,9 +45,6 @@ public class TIMark {
     private final int index;
     private final int type;
     private final long start;
-    private final long duration;
-    private final long offset;
-    private final int clip;
 
     public static final int MARK_TYPE_ENTRY = 1;
     public static final int MARK_TYPE_LINK = 2;


=====================================
src/libbluray/bdj/native/org_videolan_Libbluray.c
=====================================
@@ -130,9 +130,8 @@ static jobject _make_playlist_info(JNIEnv* env, 
BLURAY_TITLE_INFO* ti)
         BLURAY_TITLE_MARK m = ti->marks[i];
         jobject mark = bdj_make_object(env,
                 "org/videolan/TIMark",
-                "(IIJJJI)V",
-                (jint)m.idx, (jint)m.type, (jlong)m.start, (jlong)m.duration,
-                (jlong)m.offset, (jint)m.clip_ref);
+                "(IIJ)V",
+                (jint)m.idx, (jint)m.type, (jlong)m.start);
         (*env)->SetObjectArrayElement(env, marks, i, mark);
     }
     }



View it on GitLab: 
https://code.videolan.org/videolan/libbluray/-/commit/5e4034db401e7c86bd87b7af212633605244ce80

-- 
View it on GitLab: 
https://code.videolan.org/videolan/libbluray/-/commit/5e4034db401e7c86bd87b7af212633605244ce80
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to