analytics: add test for OD confidence level retrieval

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6017>
This commit is contained in:
Daniel Morin 2024-01-29 22:13:36 -05:00 committed by GStreamer Marge Bot
parent 42227d7de3
commit f1d2147ba8

View file

@ -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);
}