From d56f3fe9ece2cbb5dc830f55e2fab6a41f62ca80 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 27 May 2020 19:44:29 -0400 Subject: [PATCH] formatter: Do not dereference NULL pointer CID 1461701 Part-of: --- ges/ges-pitivi-formatter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ges/ges-pitivi-formatter.c b/ges/ges-pitivi-formatter.c index 0e41f7a1a1..47cef555da 100644 --- a/ges/ges-pitivi-formatter.c +++ b/ges/ges-pitivi-formatter.c @@ -542,9 +542,10 @@ make_source (GESFormatter * self, GList * reflist, GHashTable * source_table) g_hash_table_lookup (props_table, (gchar *) "effect_props"); if (!ges_container_add (GES_CONTAINER (src), - GES_TIMELINE_ELEMENT (effect))) - GST_ERROR ("%" GES_FORMAT " could not add %p while" - " reloading, this should never happen", GES_ARGS (src), effect); + GES_TIMELINE_ELEMENT (effect))) { + GST_ERROR ("%p could not add %p while" + " reloading, this should never happen", src, effect); + } if (!g_strcmp0 (active, (gchar *) "(bool)False")) ges_track_element_set_active (GES_TRACK_ELEMENT (effect), FALSE);