tests/onvif: improve robustness
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 26 Apr 2022 23:13:11 +0000 (01:13 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 27 Apr 2022 06:39:24 +0000 (06:39 +0000)
commit4cd3830bc83b635c46146fb26cf71cde66408fa3
treea95881e6b3ae8ab77e6d240f673d30580c0787f7
parent968969353482b074e142bfd448fab7338da80b4d
tests/onvif: improve robustness

The previous iteration of the code was inferring the type of the
frame by looking at the overall size of the gst-payloaded packet.

It is more robust to actually parse the payload and look at the
actual data buffers it contains.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2303>
subprojects/gst-rtsp-server/tests/check/gst/onvif.c