Skip to content

Commit 5bea4dd

Browse files
committed
Native function now returns a success/failure value
1 parent b292150 commit 5bea4dd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • src/main/java/uk/co/caprica/vlcj/binding/lib

src/main/java/uk/co/caprica/vlcj/binding/lib/LibVlc.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* This file is part of VLCJ.
33
*
44
* VLCJ is free software: you can redistribute it and/or modify
@@ -95,7 +95,7 @@
9595

9696
import java.util.Collections;
9797

98-
/**
98+
/**
9999
* JNA interface to the libvlc native library.
100100
* <p>
101101
* This is <strong>not a complete</strong> interface to libvlc, although most functions are present.
@@ -2132,8 +2132,9 @@ public static native int libvlc_video_set_output_callbacks(
21322132
* @param p_mi libvlc media player
21332133
* @param deinterlace state -1: auto (default), 0: disabled, 1: enabled
21342134
* @param psz_mode type of deinterlace filter, NULL to disable
2135+
* @return 0 on success, -1 if the mode was not recognised
21352136
*/
2136-
public static native void libvlc_video_set_deinterlace(libvlc_media_player_t p_mi, int deinterlace, String psz_mode);
2137+
public static native int libvlc_video_set_deinterlace(libvlc_media_player_t p_mi, int deinterlace, String psz_mode);
21372138

21382139
/**
21392140
* Get an integer marquee option value

0 commit comments

Comments
 (0)