mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
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:
parent
26eb6ab26d
commit
b10cc10e8c
2 changed files with 7 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue