gst-plugins-base fails to build in old distros like centos 7
Build failures like the following:
FAILED: gst-libs/gst/video/libgstvideo-1.0.so.0.2001.0.p/video-converter.c.o
cc -Igst-libs/gst/video/libgstvideo-1.0.so.0.2001.0.p -Igst-libs/gst/video -I../gst-libs/gst/video -I. -I.. -Igst-libs -I../gst-libs -I/tmp/build-artifacts.sh-LPkBP/build/inst/include/gstreamer-1.0 -I/tmp/build-artifacts.sh-LPkBP/build/inst/include/glib-2.0 -I/tmp/build-artifacts.sh-LPkBP/build/inst/lib/glib-2.0/include -I/tmp/build-artifacts.sh-LPkBP/build/inst/include/orc-0.4 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wmissing-declarations -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -Wmissing-prototypes -Wdeclaration-after-statement -fstack-protector -g -O2 -fno-strict-aliasing -Wformat -D_FORTIFY_SOURCE=2 -fPIC -pthread -DHAVE_CONFIG_H -DBUILDING_GST_VIDEO '-DG_LOG_DOMAIN="GStreamer-Video"' -MD -MQ gst-libs/gst/video/libgstvideo-1.0.so.0.2001.0.p/video-converter.c.o -MF gst-libs/gst/video/libgstvideo-1.0.so.0.2001.0.p/video-converter.c.o.d -o gst-libs/gst/video/libgstvideo-1.0.so.0.2001.0.p/video-converter.c.o -c ../gst-libs/gst/video/video-converter.c
../gst-libs/gst/video/video-converter.c: In function 'convert_I420_v210':
../gst-libs/gst/video/video-converter.c:3771:7: error: 'for' loop initial declarations are only allowed in C99 mode
for (int j = width * 4 - 1; j >= 0; j--) {
^
../gst-libs/gst/video/video-converter.c:3771:7: note: use option -std=c99 or -std=gnu99 to compile your code
../gst-libs/gst/video/video-converter.c: In function 'convert_v210_I420':
../gst-libs/gst/video/video-converter.c:4018:7: error: 'for' loop initial declarations are only allowed in C99 mode
for (int j = 0; j < width * 4; j++) {
^
I wonder if this could be fixed upstream in the same way that it was done for glib by passing 'c_std=gnu99'
to meson default_options. Thoughts?