gstvalue: Don't loop forever when serializing invalid flag
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Mon, 1 Aug 2022 18:00:20 +0000 (14:00 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 25 Aug 2022 22:27:51 +0000 (22:27 +0000)
commit927334ef43dcc79a5b2a06e64d2106ad6b6ce79a
tree1a471384637fcda6143ff6af562a1c19628a9799
parent404b646b6ecff6db17836f8eab3efb208989f2a1
gstvalue: Don't loop forever when serializing invalid flag

The serialization code would loop forever if an invalid flag was sent into it.

With unit test for this corner case.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2823>
subprojects/gstreamer/gst/gstvalue.c
subprojects/gstreamer/tests/check/gst/gstvalue.c