Skip to content

Commit 5ff521e

Browse files
committed
Work around JNA issues in jump()
1 parent da12912 commit 5ff521e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/processing/video/Movie.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,11 @@ public void jump(float where) {
318318

319319
// Round the time to a multiple of the source framerate, in
320320
// order to eliminate stutter. Suggested by Daniel Shiffman
321-
float fps = getSourceFrameRate();
322-
int frame = (int)(where * fps);
323-
where = frame / fps;
321+
// Later disabled since playbin.getVideoSinkFrameRate() causes
322+
// JNA issues with GStreamer 1.x
323+
//float fps = getSourceFrameRate();
324+
//int frame = (int)(where * fps);
325+
//where = frame / fps;
324326

325327
boolean res;
326328
long pos = Video.secToNanoLong(where);

0 commit comments

Comments
 (0)