diff options
author | Daniel Morin <daniel.morin@collabora.com> | 2024-01-29 22:13:36 -0500 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2024-01-31 14:40:56 +0000 |
commit | f1d2147ba88b295c62b7d62e01e9b7443232d104 (patch) | |
tree | cdeafecee5cc2568554a97e693fd8568c6faff3c /subprojects | |
parent | 42227d7de30f9e90381eb12b4f3f370ce56e2311 (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.c | 5 |
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); } |