[gst-devel] gst_structure_from_string octal codes

Stefan Kost ensonic at hora-obscura.de
Mon Jul 21 11:40:28 CEST 2008


hi,

Martin Pokorny schrieb:
> Hi, all;
> 
> It seems to me that gst_structure_from_string does not correctly convert octal
> codes created by gst_structure_to_string. A short example:
> 
> const gchar *str = "hello\tworld";
> GstStructure *s0 = gst_structure_new("foo",
>                                      "list", G_TYPE_STRING, str,
>                                      NULL);
> gchar *s0str = gst_structure_to_string(s0);
> printf("s0str: %s\n", s0str);
> GstStructure *s1 = gst_structure_from_string(s0str, NULL);
> const gchar *list = gst_structure_get_string(s1, "list");
> printf("list: %s\n", list);

Does is say somewhere that it behaves like this? Otherwise can you file a 
feature request for it. Bonus point for a patch attached to it.

Stefan

> 
> Running this code, I see:
> s0str: foo, list=(string)"hello\011world"
> list: hello011world
> 
> Shouldn't gst_structure_from_string convert the \011 back to a tab character?
> 





More information about the gstreamer-devel mailing list