Fix SVACE issue(DEREF_OF_NULL.EX) 36/299836/3 accepted/tizen/7.0/unified/20231012.162657
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 11 Oct 2023 04:42:00 +0000 (13:42 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 11 Oct 2023 09:31:44 +0000 (09:31 +0000)
Change-Id: I0666859ec394bcdcbdef8f7c816ff841bf614bb3

src/include_internal/trackrenderer/core/pipeline.hpp

index 648061825b33faf9a7f22977ad366730312c24db..76ac9bd752e3a0b9e745804675ed115aa91d0d10 100644 (file)
@@ -194,6 +194,11 @@ class Pipeline : private boost::noncopyable {
           factory = dec_factory;
       }
 
+      if (!factory) {
+        TRACKRENDERER_ERROR("Fail to find filtered factory");
+        return false;
+      }
+
       TRACKRENDERER_DEBUG("factory name : %s", GST_OBJECT_NAME(factory));
       obj = gst_element_factory_create(factory, nickname);
       gst_plugin_feature_list_free (filtered);