va: caps: Use G_STMT_START / END

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2948>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-09-06 14:53:41 +02:00 committed by GStreamer Marge Bot
parent 44fe871534
commit 230e1e6bb4

View file

@ -336,9 +336,9 @@ _add_jpeg_fields (GstVaDisplay * display, GstCaps * caps, VAProfile profile,
va_rt_format_list[i]))
continue;
#define APPEND_YUV do { \
#define APPEND_YUV G_STMT_START \
if (!yuv) { _value_list_append_string (&colorspace, "sYUV"); yuv = TRUE; } \
} while (0)
G_STMT_END
switch (va_rt_format_list[i]) {
case VA_RT_FORMAT_YUV420: