Skip to content

Commit

Permalink
Add pfactory verification
Browse files Browse the repository at this point in the history
  • Loading branch information
juankruz authored and jafet-chaves committed Jul 2, 2020
1 parent e50cbdc commit 9365fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gst-libs/gst/r2inference/gstbasebackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 &param : params) {
GParamSpec *spec = gst_base_backend_param_to_spec (&param);
Expand Down

0 comments on commit 9365fc3

Please sign in to comment.