deinterlace: Add the missing ORC_RESTRICT define.
authorHe Junyan <junyan.he@hotmail.com>
Sun, 21 Jun 2020 12:11:06 +0000 (20:11 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Sun, 21 Jun 2020 12:11:06 +0000 (20:11 +0800)
ORC_RESTRICT may not be defined in yadif.c and cause build error.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/637>

gst/deinterlace/yadif.c

index de21537..3692e15 100644 (file)
 #else
 #define ALWAYS_INLINE inline
 #endif
+#ifndef ORC_RESTRICT
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#define ORC_RESTRICT restrict
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define ORC_RESTRICT __restrict__
+#else
+#define ORC_RESTRICT
+#endif
+#endif
 
 #define GST_TYPE_DEINTERLACE_METHOD_YADIF      (gst_deinterlace_method_yadif_get_type ())
 #define GST_IS_DEINTERLACE_METHOD_YADIF(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_DEINTERLACE_METHOD_YADIF))