After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796240 - gst-validate-1.0 ignores errors in pipeline element parameters
gst-validate-1.0 ignores errors in pipeline element parameters
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-devtools
1.14.0
Other Linux
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-18 15:27 UTC by Marie Maurer
Modified: 2018-05-18 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marie Maurer 2018-05-18 15:27:42 UTC
When calling gst-launch-1.0 with a wrong parameter (have a look for abc=456):

# gst-launch-1.0 v4l2src device=/dev/v4l/by-path/platform-capture-subsystem-video-index4 io-mode=dmabuf abc=456 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=50000/1000 ! fakesink silent=false

then I get a warning

WARNING: erroneous pipeline: no property "abc" in element "v4l2src0"

and execution is aborted.

Doing the same with 

# gst-validate-1.0 --set-scenario testpauselang v4l2src device=/dev/v4l/by-path/platform-capture-subsystem-video-index4 io-mode=dmabuf abc=456 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=50000/1000 ! fakesink silent=false

the execution just runs without any comment nor notice.
No abort of the program.

Should not at least a test tool check the validity of the pipeline
like gst-launch-1.0 seems to be doing it?
Comment 1 Thibault Saunier 2018-05-18 15:54:51 UTC
commit 683b19895e2cc12512f83e8557ffc42089291d45 (HEAD -> master, origin/master, origin/HEAD)
Author: Thibault Saunier <tsaunier@igalia.com>
Date:   Fri May 18 11:50:18 2018 -0400

    validate: Error out if gst_parse_launch sets an error.

    https://bugzilla.gnome.org/show_bug.cgi?id=796240