summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2016-01-06 21:17:16 +0100
committerStefan Sauer <ensonic@users.sf.net>2016-01-06 21:25:32 +0100
commit555f48da4bef267f0ac4204eff68965aec2a46ad (patch)
treec48dade5ddca89291c0a0397332f9930b10914ea
parent90318900a192e341833db5d05c33a39c8bc9b210 (diff)
structure: log a warning if we can't serialize a field
The function always returns TRUE right now, so atleast log something.
-rw-r--r--gst/gststructure.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c
index 0617115a2..2f8fc95a5 100644
--- a/gst/gststructure.c
+++ b/gst/gststructure.c
@@ -1927,8 +1927,14 @@ priv_gst_structure_append_to_gstring (const GstStructure * structure,
g_string_append_len (s, "=(", 2);
g_string_append (s, gst_structure_to_abbr (type));
g_string_append_c (s, ')');
- g_string_append (s, t == NULL ? "NULL" : t);
- g_free (t);
+ if (t) {
+ g_string_append (s, t);
+ g_free (t);
+ } else {
+ GST_WARNING ("No value transform to serialize field '%s' of type '%s'",
+ g_quark_to_string (field->name), gst_structure_to_abbr (type));
+ g_string_append (s, "NULL");
+ }
}
g_string_append_c (s, ';');