From ed2c7006c527a48a0536bf8465bcbe9d1cbaa28a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 28 Feb 2020 11:58:30 -0300 Subject: [PATCH] framepositioner: Avoid dereferencing NULL pointer --- ges/gstframepositioner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ges/gstframepositioner.c b/ges/gstframepositioner.c index a8a0055489..a64c4c964b 100644 --- a/ges/gstframepositioner.c +++ b/ges/gstframepositioner.c @@ -200,9 +200,9 @@ reposition_properties (GstFramePositioner * pos, gint old_track_width, } g_object_get (binding, "control_source", &source, NULL); - if (!GST_IS_TIMED_VALUE_CONTROL_SOURCE (source)) { + if (!source || !GST_IS_TIMED_VALUE_CONTROL_SOURCE (source)) { GST_FIXME_OBJECT (pos, "Implement support for control source type: %s", - G_OBJECT_TYPE_NAME (source)); + source ? G_OBJECT_TYPE_NAME (source) : "NULL"); goto next; }