From b10cc10e8c561a33941876ae99b1859b152c2d35 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 13 Oct 2005 21:27:57 +0000 Subject: [PATCH] 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 * gst/gststructure.c: (gst_structure_to_string): guard against NULL printf - happens when for example a message structure with GstClock gets serialized --- ChangeLog | 6 ++++++ gst/gststructure.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2ed6bf3875..9d197851d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-13 Thomas Vander Stichele + + * 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 * gst/base/gstcollectpads.c: (gst_collectpads_event): diff --git a/gst/gststructure.c b/gst/gststructure.c index 60f1538e6b..8f5c2dc84a 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -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);