projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9031890
)
structure: log a warning if we can't serialize a field
author
Stefan Sauer
<ensonic@users.sf.net>
Wed, 6 Jan 2016 20:17:16 +0000
(21:17 +0100)
committer
Stefan Sauer
<ensonic@users.sf.net>
Wed, 6 Jan 2016 20:25:32 +0000
(21:25 +0100)
The function always returns TRUE right now, so atleast log something.
gst/gststructure.c
patch
|
blob
|
history
diff --git
a/gst/gststructure.c
b/gst/gststructure.c
index
0617115
..
2f8fc95
100644
(file)
--- 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, ';');