gstreamer-java / gst1-java-core

Java bindings for GStreamer 1.x
GNU Lesser General Public License v3.0
188 stars 72 forks source link

Support setting and getting GstObject properties as serialized String #190

Closed neilcsmith-net closed 4 years ago

neilcsmith-net commented 4 years ago

This supports setting and getting GstObject properties in a serialized String format. It makes use of gst_value_serialize and gst_value_deserialize. This is in GstObject rather than GObject because it relies on GStreamer-specific functionality (with possible thought of splitting off GLib support in future).

This code is intended as an alternative to #187 and includes an adapted version of the test by @MaZderMind in there. It fixes #182 as well as hopefully other uses mentioned in #166 and elsewhere.

Returned String representation of enums is surprising, but also usable in setAsString.

neilcsmith-net commented 4 years ago

Had concerns this didn't address #166 but looks like an upstream bug that doesn't allow mix-matrix to be set again. https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/481