caps: warn with wrong mediatype in gst_caps_new_empty_simple
authorStéphane Cerveau <scerveau@collabora.com>
Mon, 25 Apr 2022 08:59:21 +0000 (10:59 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Wed, 11 May 2022 06:59:37 +0000 (08:59 +0200)
commit7f7084cd3a63aac4d4d331b35cd16171624b6a51
treeab5047d9b528cdd08d3bfcafb956f2ee55c4c677
parent8d40531f23a5c5ecc0ab2d2f96a3675b2768e74d
caps: warn with wrong mediatype in gst_caps_new_empty_simple

If passing ANY/EMPTY to gst_caps_new_empty_simple
as a mediatype, a warning will be displayed to alert
on this misuse of the API.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2290>
subprojects/gstreamer/gst/gstcaps.c
subprojects/gstreamer/tests/check/pipelines/seek.c