diff options
author | Andy Wingo <wingo@pobox.com> | 2008-03-03 10:07:21 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2008-03-03 10:07:21 +0000 |
commit | 391d9dfc9e3fdf857147206890809ed57de2bc16 (patch) | |
tree | 275ee70a7f77fc885f18a8ea92f9cb90337a4fe0 /gst/gststructure.c | |
parent | 96aa08f00835f5179b8caba3cb35f5143525c05d (diff) |
tests/check/gst/gststructure.c (GST_START_TEST): Add a check for the new warning.
Original commit message from CVS:
2008-03-03 Andy Wingo <wingo@pobox.com>
* tests/check/gst/gststructure.c (GST_START_TEST): Add a check for
the new warning.
* gst/gststructure.c (gst_structure_from_string): Warn if
structure_from_string didn't consume the whole string, but the
caller did not provide an end pointer.
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r-- | gst/gststructure.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c index c72358508..18c816e5c 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -1966,6 +1966,9 @@ gst_structure_from_string (const gchar * string, gchar ** end) if (end) *end = (char *) string + (r - copy); + else if (*r) + g_warning ("gst_structure_from_string did not consume whole string," + " but caller did not provide end pointer (\"%s\")", string); g_free (copy); return structure; |