videoscale: fix valid_tags NULL-terminated array of strings

The valid_tags array of strings must be NULL-terminated,
as it is passed to the g_strv_contains() function.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3604>
This commit is contained in:
Philipp Zabel 2022-12-19 15:22:15 +01:00 committed by Tim-Philipp Müller
parent f9c2df6f9a
commit 18cae8c9b4

View file

@ -519,7 +519,8 @@ gst_video_scale_transform_meta (GstBaseTransform * trans, GstBuffer * outbuf,
const gchar *const valid_tags[] = { GST_META_TAG_VIDEO_STR,
GST_META_TAG_VIDEO_COLORSPACE_STR,
GST_META_TAG_VIDEO_ORIENTATION_STR,
GST_META_TAG_VIDEO_SIZE_STR
GST_META_TAG_VIDEO_SIZE_STR,
NULL
};
tags = gst_meta_api_type_get_tags (info->api);