gst/gststructure.c: guard against NULL printf - happens when for example a message structure with GstClock gets seria...

Original commit message from CVS:
2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>

* gst/gststructure.c: (gst_structure_to_string):
guard against NULL printf - happens when for example
a message structure with GstClock gets serialized
This commit is contained in:
Thomas Vander Stichele 2005-10-13 21:27:57 +00:00
parent 26eb6ab26d
commit b10cc10e8c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-10-13 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gststructure.c: (gst_structure_to_string):
guard against NULL printf - happens when for example
a message structure with GstClock gets serialized
2005-10-13 Tim-Philipp Müller <tim at centricular dot net>
* gst/base/gstcollectpads.c: (gst_collectpads_event):

View file

@ -1287,7 +1287,7 @@ gst_structure_to_string (const GstStructure * structure)
type = gst_structure_value_get_generic_type (&field->value);
g_string_append_printf (s, ", %s=(%s)%s", g_quark_to_string (field->name),
gst_structure_to_abbr (type), t);
gst_structure_to_abbr (type), GST_STR_NULL (t));
g_free (t);
}
return g_string_free (s, FALSE);