va: caps: Use G_STMT_START / END
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 6 Sep 2022 12:53:41 +0000 (14:53 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 7 Sep 2022 05:57:40 +0000 (05:57 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2948>

subprojects/gst-plugins-bad/sys/va/gstvacaps.c

index 5fb95b9..c9d925a 100644 (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: