Browse Source

package/gstreamer1/gst1-plugins-base: fix build with gcc 4.8

Fix the following build failure with gcc 4.8 raised since bump to
version 1.20.0 in commit 801131157dcef2c97e947a1d3e8c9bfa7aa3d870:

../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--) {
       ^

Fixes:
 - http://autobuild.buildroot.org/results/c4b1449f35debcbabff7e42abe239695d4ad4d21

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fabrice Fontaine 3 years ago
parent
commit
d7b999e947
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk

+ 2 - 0
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk

@@ -11,6 +11,8 @@ GST1_PLUGINS_BASE_INSTALL_STAGING = YES
 GST1_PLUGINS_BASE_LICENSE_FILES = COPYING
 GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+
 
+GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
+
 GST1_PLUGINS_BASE_CONF_OPTS = \
 	-Dexamples=disabled \
 	-Dtests=disabled \