Commit b10cc10e authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

gst/gststructure.c: guard against NULL printf - happens when for example a...

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
parent 26eb6ab2
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> 2005-10-13 Tim-Philipp Müller <tim at centricular dot net>
* gst/base/gstcollectpads.c: (gst_collectpads_event): * gst/base/gstcollectpads.c: (gst_collectpads_event):
......
...@@ -1287,7 +1287,7 @@ gst_structure_to_string (const GstStructure * structure) ...@@ -1287,7 +1287,7 @@ gst_structure_to_string (const GstStructure * structure)
type = gst_structure_value_get_generic_type (&field->value); type = gst_structure_value_get_generic_type (&field->value);
g_string_append_printf (s, ", %s=(%s)%s", g_quark_to_string (field->name), 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); g_free (t);
} }
return g_string_free (s, FALSE); return g_string_free (s, FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment