parse: refactor to make use of gst_element_factory_make_with_properties
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 13 Sep 2022 21:16:08 +0000 (23:16 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 19 Oct 2022 11:21:04 +0000 (11:21 +0000)
commitc2f890aba70b3e85f94e0c7a8542fd369d989879
tree26bdf18ddfaf80c81b9d7ac2d7b680cba4a27128
parent095bca9bdba273c13d9a03ccc892ba84fc0bfb32
parse: refactor to make use of gst_element_factory_make_with_properties

Instead of creating the element first, then setting properties and
presets, we gather those and construct the element with the properties.

This means users of gst_parse_launch can now set construct-only
properties.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1380

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3026>
subprojects/gstreamer/gst/parse/grammar.y.in
subprojects/gstreamer/gst/parse/types.h
subprojects/gstreamer/tests/check/pipelines/parse-launch.c