[gstreamer-bugs] [Bug 487969] allow nested GstStructures

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Oct 19 07:53:34 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=487969

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #10 from Edgard Lima  2007-10-19 14:53 UTC -------
MikeS,

1- of course such test print this

...when I said compatibility, it means the current GStreamer can create caps
to/from string or structure to/from string by using the 'old' strings (without
delimiters)

of course the old gstreamer version can't parser the new created string

Wim,

If you don't like to put field separators beteween caps, OK.
so, no comma between caps fields (structure)...fortunately it will work 'cause
the structures knows its end (';')

Ok, to not have extra ';' at the end of caps (you just have to keep in mind
that caps can't be inside of values unless something are assumed...)

....lets forget the change by now and think what happens with the following
code with currently GStreamer version:

caps - new_caps_with_some_structures_inside();
strucuture = new_strucure()

str1 = caps_to_str(caps);
str2 = structure_to_str(structure);

write(file, str1);
write(file, str2);

...then...

str = read(file);

caps = caps_from_str(); /* update str pointer to the end */
structure = structure_from_str();

So, the caps will have one more 'structure' and structure will be null

- - - - - - - - - - - - - - - -

But ok,

so, no additional ',' for caps and no additional ';' at the and of caps

so , in 5 min I will attach another patch

1- ';' will still be printed by satructure
2- 'the latest ';' will be removed by caps

Mike,

now the patch I'll attach will be 100% compatibly (even with only GstStructure
that now print a new ';' in the end cause in current GStreamer version it
already looks for a ';')

btw: How can GstStructure look for an end ';' if it doens't write it ??!?! So,
it is not a well designed API, GstStructure forces it parent to write ';'
....so it should be at least better documented, in gst_structure_to_string
documentation should say /* please put a ';' or '\0' after me so that I know
handle gst_structure_from_string */

...but anyway 5 min will put the patch

BR


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=487969.




More information about the Gstreamer-bugs mailing list