tracerrecord: avoid overwriting value
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 19 Jan 2016 12:04:16 +0000 (12:04 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 19 Jan 2016 12:04:19 +0000 (12:04 +0000)
res value is overwritten, remove the assignment.
priv__gst_structure_append_template_to_gstring () always returns TRUE
anyway.

CID 1349645

gst/gsttracerrecord.c

index d1e9939..319a3ee 100644 (file)
@@ -88,8 +88,7 @@ build_field_template (GQuark field_id, const GValue * value, gpointer user_data)
 
     /* add a boolean field, that indicates the presence of the next field */
     g_value_init (&template_value, G_TYPE_BOOLEAN);
-    res =
-        priv__gst_structure_append_template_to_gstring (g_quark_from_string
+    priv__gst_structure_append_template_to_gstring (g_quark_from_string
         (opt_name), &template_value, s);
     g_value_unset (&template_value);
     g_free (opt_name);