diff --git a/library.properties b/library.properties index 16a4719..fe32250 100644 --- a/library.properties +++ b/library.properties @@ -4,7 +4,7 @@ url = http://processing.org/reference/libraries/video/index.html category = Video & Vision sentence = GStreamer-based video library for Processing. paragraph = -version = 11 -prettyVersion = 2.2.1 +version = 12 +prettyVersion = 2.2.2 minRevision = 1281 maxRevision = 0 diff --git a/library/jna.jar b/library/jna.jar index e73c2c2..77f8c7a 100644 Binary files a/library/jna.jar and b/library/jna.jar differ diff --git a/scripts/pack_linux_libs.sh b/scripts/pack_linux_libs.sh index 572b06b..e19a4d8 100755 --- a/scripts/pack_linux_libs.sh +++ b/scripts/pack_linux_libs.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Set the appropriae build dist folder in this env variable +# Set the appropriate build dist folder in this env variable meson_build_folder=/home/andres/code/gstreamer/build-1.20/lib/x86_64-linux-gnu # Copy the build to the native library folder for linux diff --git a/src/processing/video/Capture.java b/src/processing/video/Capture.java index 13fd8a7..844e87b 100755 --- a/src/processing/video/Capture.java +++ b/src/processing/video/Capture.java @@ -535,8 +535,16 @@ protected void initDevicePipeline() { initSink(); - pipeline.addMany(srcElement, videoscale, videoconvert, capsfilter, rgbSink); - Element.linkMany(srcElement, videoscale, videoconvert, capsfilter, rgbSink); + pipeline.add(srcElement); + pipeline.add(videoscale); + pipeline.add(videoconvert); + pipeline.add(capsfilter); + pipeline.add(rgbSink); + + srcElement.link(videoscale); + videoscale.link(videoconvert); + videoconvert.link(capsfilter); + capsfilter.link(rgbSink); makeBusConnections(pipeline.getBus()); } @@ -730,6 +738,8 @@ public synchronized void post() { * Multiple devices can have identical display names, appending ' #n' to devices * with duplicate display names. * @return array of device names + * @webref capture + * @webBrief Get a list of all capture device names */ static public String[] list() { Video.init();