summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorDaniel Morin <daniel.morin@collabora.com>2024-01-29 22:13:36 -0500
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-01-31 14:40:56 +0000
commitf1d2147ba88b295c62b7d62e01e9b7443232d104 (patch)
treecdeafecee5cc2568554a97e693fd8568c6faff3c /subprojects
parent42227d7de30f9e90381eb12b4f3f370ce56e2311 (diff)
analytics: add test for OD confidence level retrieval
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6017>
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/gst-plugins-bad/tests/check/libs/analyticsmeta.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-bad/tests/check/libs/analyticsmeta.c b/subprojects/gst-plugins-bad/tests/check/libs/analyticsmeta.c
index 3aed1f6b4b..10f4349e99 100644
--- a/subprojects/gst-plugins-bad/tests/check/libs/analyticsmeta.c
+++ b/subprojects/gst-plugins-bad/tests/check/libs/analyticsmeta.c
@@ -576,6 +576,11 @@ GST_START_TEST (test_od_meta_fields)
fail_unless (_h == h);
fail_unless (_loc_conf_lvl == loc_conf_lvl);
+ _loc_conf_lvl = -200.0; // dirty this var by setting invalid value.
+ gst_analytics_od_mtd_get_confidence_lvl (&od_mtd, &_loc_conf_lvl);
+
+ fail_unless (_loc_conf_lvl == loc_conf_lvl);
+
gst_buffer_unref (buf);
}