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); 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? -- Martin ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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? > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |