gstreamer/tests/check
Henry Wilkes 7f267395a6 structure: don't unescape values before deserializing
No longer call _priv_gst_value_parse_string with unescape set to TRUE
before passing a value to gst_value_deserialize in
_priv_gst_value_parse_value. This latter function is called by
gst_structure_from_string and gst_caps_from_string.

When gst_structure_to_string and gst_caps_to_string are called, no
escaping is performed after calling gst_value_serialize. Therefore, by
unescaping the value string, we were introducing an additional operation
that was not performed by the original *_to_string functions. In
particular, this has meant that the derialization functions for many
non-basic types are incomplete reverses of the corresponding
serialization function (i.e., if you pipe the output of the
serialization function into the deserialization function it could fail)
because they have to compensate for this additional escaping operation,
when really this should be the domain of the deserialization functions
instead.

Correspondingly changed a few deserialization functions.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/452

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/303>
2021-01-19 13:25:07 +00:00
..
elements tests: leaks: Allow null tracer string if there's no available stack trace 2020-09-15 06:35:34 +09:00
generic Remove autotools build system 2019-10-13 16:10:42 +01:00
gst structure: don't unescape values before deserializing 2021-01-19 13:25:07 +00:00
libs harness: Handle element not being set cleanly. 2020-10-30 23:46:07 +11:00
pipelines tests: seek: Don't use too strict timeout for validation 2020-09-15 00:54:58 +09:00
tools tests: refactor tools check a little 2014-10-31 16:10:01 +00:00
gstreamer.supp tests: Add test for new live-objects leaktracer API 2019-07-02 15:13:26 +05:30
meson.build skip elements/leak.c if tracer is not available 2020-09-09 12:20:01 +00:00