diff --git a/gst-libs/gst/r2inference/gstbasebackend.cc b/gst-libs/gst/r2inference/gstbasebackend.cc index f96566c3..4e731592 100644 --- a/gst-libs/gst/r2inference/gstbasebackend.cc +++ b/gst-libs/gst/r2inference/gstbasebackend.cc @@ -160,7 +160,8 @@ gst_base_backend_install_properties (GstBaseBackendClass *klass, auto factory = r2i::IFrameworkFactory::MakeFactory (code, error); auto pfactory = factory->MakeParameters (error); - error = pfactory->List (params); + if (pfactory) + error = pfactory->List (params); for (auto ¶m : params) { GParamSpec *spec = gst_base_backend_param_to_spec (¶m);