After upgrading gstreamer to master git.
I'm getting the following error when building gstreamer1.0-plugins-base:
/home/mastag/src/openpli-oe-core/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.6.2+gitAUTOINC+5f79ccb420-r0/git/gst-libs/gst/riff/riff-media.c: In function 'gst_riff_create_video_caps': | /home/mastag/src/openpli-oe-core/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.6.2+gitAUTOINC+5f79ccb420-r0/git/gst-libs/gst/riff/riff-media.c:463:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] | gchar *fstr = g_strdup_printf ("%" GST_FOURCC_FORMAT, | ^ | cc1: all warnings being treated as errors | Makefile:631: recipe for target 'libgstriff_1.0_la-riff-media.lo' failed | make[4]: *** [libgstriff_1.0_la-riff-media.lo] Error 1
It seems the patch: 0001-riff-media-added-fourcc-to-all-ffmpeg-mpeg4-video-ca.patch is the cause.
It modifies the source to look like this:
case GST_MAKE_FOURCC ('F', 'F', 'D', 'S'): { caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 4, "systemstream", G_TYPE_BOOLEAN, FALSE, NULL); gchar *fstr = g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (codec_fcc)); gst_caps_set_simple (caps, "fourcc", G_TYPE_STRING, fstr, NULL); g_free (fstr); if (codec_name) *codec_name = g_strdup ("FFmpeg MPEG-4"); break; }
Any ideas what's wrong with it?