[Bug 777375] paramspec: Add gst_param_spec_array_list for GST_TYPE_ARRAY

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jan 31 17:12:12 UTC 2017


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

--- Comment #18 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Vivia Nikolaidou from comment #17)
> Created attachment 344654 [details] [review]
> 0001-paramspec-Add-gst_param_spec_array_list-for-GST_TYPE.patch
> 
> Fixed serialization: don't print type (inside lists and arrays) for
> GstStructures, but always print it otherwise.

So for normal serialization of values that contain a list/array, we will
provide the type before each value. That is, we get e.g. "<(double) 1, (double)
2>". This is needed so that we can always do
gst_value_deserialize(gst_value_serialize(value)) and get the same value back.

However for structures we did not do that, they did do magic for lists/arrays.
And also ensure that every array/list element has the same type. That is, we
get "(double) <1, 2>".

The patch keeps this behaviour (and should get some unit tests), although it is
inconsistent. Existing code might depend on that. Just as before, GstStructure
can also parse the other variant though ("<(double) 1, (double) 2>").

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list