GNOME Bugzilla – Bug 779755
Timecodes get serialized as flagsets
Last modified: 2017-03-09 01:14:12 UTC
#include <gst/gst.h> #include <string.h> int main (int argc, char **argv) { const gchar *serialized_structure = "dummy, timecode=00:01:00:00"; GstStructure *s; gst_init (&argc, &argv); s = gst_structure_from_string (serialized_structure, NULL); gst_println ("Structure to string: %s", gst_structure_to_string (s)); return 0; } =============== $ ./serialize Structure to string: dummy, timecode=(flagset)0:1;
I think you mean *deserialised* right? It's only being serialised as a flagset in the first place because it's interpreted that way in the string.
Created attachment 347517 [details] [review] gstvalue: Do more checks when guessing at flagset strings If guessing that a string matches a flagset, be more thorough at checking that the string following a string of hex:hex: actually looks like a flag set string. Add some unit tests to catch more cases.
Pushed as d781d0