You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webcam-capture-drivers/driver-gstreamer/src/main/java/com/github/sarxos/webcam/ds/gstreamer/GStreamerDevice.java
+21-26Lines changed: 21 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -54,11 +54,11 @@ public class GStreamerDevice implements WebcamDevice, RGBDataSink.Listener, Webc
54
54
/**
55
55
* Device name, immutable. Used only on Windows platform.
56
56
*/
57
-
privatefinalStringname;
57
+
privatefinalintdeviceIndex;
58
58
/**
59
59
* Device name, immutable. Used only on Linux platform.
60
60
*/
61
-
privatefinalFilevfile;
61
+
privatefinalFilevideoFile;
62
62
63
63
privatefinalGStreamerDriverdriver;
64
64
@@ -67,7 +67,7 @@ public class GStreamerDevice implements WebcamDevice, RGBDataSink.Listener, Webc
67
67
privatePipelinepipe = null;
68
68
privateElementsource = null;
69
69
privateElementfilter = null;
70
-
privateElementjpegpar = null;
70
+
privateElementjpegparse = null;
71
71
privateElementjpegdec = null;
72
72
privateElement[] elements = null;
73
73
privateRGBDataSinksink = null;
@@ -95,16 +95,16 @@ public class GStreamerDevice implements WebcamDevice, RGBDataSink.Listener, Webc
Copy file name to clipboardExpand all lines: webcam-capture-drivers/driver-gstreamer/src/main/java/com/github/sarxos/webcam/ds/gstreamer/GStreamerDriver.java
+33-15Lines changed: 33 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@
9
9
importorg.gstreamer.Element;
10
10
importorg.gstreamer.ElementFactory;
11
11
importorg.gstreamer.Gst;
12
-
importorg.gstreamer.interfaces.PropertyProbe;
12
+
importorg.gstreamer.State;
13
+
importorg.gstreamer.StateChangeReturn;
13
14
importorg.slf4j.Logger;
14
15
importorg.slf4j.LoggerFactory;
15
16
@@ -104,6 +105,10 @@ private static final void init() {
0 commit comments