framepositioner: Avoid dereferencing NULL pointer

This commit is contained in:
Thibault Saunier 2020-02-28 11:58:30 -03:00
parent e3aa157d53
commit ed2c7006c5

View file

@ -200,9 +200,9 @@ reposition_properties (GstFramePositioner * pos, gint old_track_width,
} }
g_object_get (binding, "control_source", &source, NULL); 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", 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; goto next;
} }