diff --git a/gstreamer/BUILD.gn b/gstreamer/BUILD.gn index 8eaf575afe751433eb9b41b30f7615d2c6f2e056..ad5bab70cd12169ad91f07354daea75be9dd5023 100644 --- a/gstreamer/BUILD.gn +++ b/gstreamer/BUILD.gn @@ -44,6 +44,7 @@ config("gst_config") { "-DHAVE_CONFIG_H", "-DOHOS_EXT_FUNC", "-DOHOS_OPT_COMPAT", + "-DOHOS_OPT_STABLE", "-DOHOS_OPT_CVE", "-DOHOS_OPT_PERFORMANCE", "-DOHOS_GLIB_COMPATIBLE", diff --git a/gstreamer/gst/gstbin.c b/gstreamer/gst/gstbin.c index 70ab2a1047343ff4fd632550306902e55b125889..cdc262b5dd1733f8934a9d47a1ebb4dc85c3e2cc 100644 --- a/gstreamer/gst/gstbin.c +++ b/gstreamer/gst/gstbin.c @@ -1458,6 +1458,10 @@ gst_bin_deep_element_added_func (GstBin * bin, GstBin * sub_bin, "%" GST_PTR_FORMAT " which has just been added to %" GST_PTR_FORMAT, child, sub_bin); +#ifdef OHOS_OPT_STABLE + /* ohos.opt.stable.0004 for asan read mem out range*/ + GST_INFO_OBJECT (parent_bin, "gst_bin_signals DEEP_ELEMENT_ADDED"); +#endif g_signal_emit (parent_bin, gst_bin_signals[DEEP_ELEMENT_ADDED], 0, sub_bin, child); @@ -1481,6 +1485,10 @@ gst_bin_deep_element_removed_func (GstBin * bin, GstBin * sub_bin, "%" GST_PTR_FORMAT " which has just been removed from %" GST_PTR_FORMAT, child, sub_bin); +#ifdef OHOS_OPT_STABLE + /* ohos.opt.stable.0004 for asan read mem out range*/ + GST_INFO_OBJECT (parent_bin, "gst_bin_signals DEEP_ELEMENT_REMOVED"); +#endif g_signal_emit (parent_bin, gst_bin_signals[DEEP_ELEMENT_REMOVED], 0, sub_bin, child);