tests/webrtcbin: Remove useless checks with unsigned values

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-05 12:12:21 +01:00 committed by GStreamer Marge Bot
parent 1221a09a5d
commit fc5b616fca

View file

@ -1593,8 +1593,8 @@ validate_codec_stats (const GstStructure * s)
fail_unless (gst_structure_get (s, "payload-type", G_TYPE_UINT, &pt, NULL));
fail_unless (gst_structure_get (s, "clock-rate", G_TYPE_UINT, &clock_rate,
NULL));
fail_unless (pt >= 0 && pt <= 127);
fail_unless (clock_rate >= 0);
fail_unless (pt <= 127);
/* NOTE: Can't check the validity of the clock rate. It could be anything from 0 to the maximum value */
}
static void