win32: Include config.h before anything else. Fix mpegdemux LIBADD
authorÐóñëàí Èæáóëàòîâ <lrn1986@gmail.com>
Mon, 11 Jan 2010 19:41:57 +0000 (22:41 +0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Jan 2010 11:31:56 +0000 (12:31 +0100)
Because config.h defines __MSVCRT_VERSION__, which should be defined
before inclusion of any system header.

Also fixes mpegdemux Makefile.am LIBADD typo.

Fixes #606665

ext/soundtouch/gstbpmdetect.cc
ext/soundtouch/gstpitch.cc
gst-libs/gst/signalprocessor/gstsignalprocessor.c
gst/audioparsers/gstaacparse.c
gst/audioparsers/gstamrparse.c
gst/h264parse/gsth264parse.c
gst/mpegdemux/Makefile.am

index 56ba087cd91b269baa2a55bf1e4b02177ce63fbb..710ba86665b84c386287b39b16b68ed7908976d3 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#define FLOAT_SAMPLES 1
-#include <soundtouch/BPMDetect.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /* FIXME: workaround for SoundTouch.h of version 1.3.1 defining those
  * variables while it shouldn't. */
 #undef VERSION
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE
 
-/* FIXME: keep it here to avoid PACKAGE* redefinition warnings */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#define FLOAT_SAMPLES 1
+#include <soundtouch/BPMDetect.h>
 
 #include <gst/audio/audio.h>
 #include <gst/audio/gstaudiofilter.h>
index 3990b9d48f8a2a6a08740f90937fc64f0db6c60c..2ad0509b5f28b654d550586837b431c57d646d9c 100644 (file)
  *
  */
 
-#define FLOAT_SAMPLES 1
-#include <soundtouch/SoundTouch.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 /* FIXME: workaround for SoundTouch.h of version 1.3.1 defining those
  * variables while it shouldn't. */
 #undef VERSION
@@ -29,9 +31,8 @@
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#define FLOAT_SAMPLES 1
+#include <soundtouch/SoundTouch.h>
 
 #include <gst/gst.h>
 #include <gst/controller/gstcontroller.h>
index 9b3e3ab7f2709eaa09a6f048e9a03b7b6d493590..80b366cf9285308097caadabec29676ced7b59eb 100644 (file)
  *    the buffer
  */
 
-#include <stdlib.h>
-#include <string.h>
-
 #ifdef HAVE_CONFIG_H
 #  include "config.h"
 #endif
 
+#include <stdlib.h>
+#include <string.h>
+
 #include <gst/audio/audio.h>
 #include "gstsignalprocessor.h"
 
index 0debf38eaa8d65c241533862f150e347da2ab73d..db63c5a515de579095302c5b718805cf86084a01 100644 (file)
  * </refsect2>
  */
 
-#include <string.h>
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#include <string.h>
+
 #include "gstaacparse.h"
 
 
index 0f1896a448bd69187075789b3e9b807770153136..0266ee875a7f02876cd44dc10106c9dc7c717a71 100644 (file)
  * </refsect2>
  */
 
-#include <string.h>
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#include <string.h>
+
 #include "gstamrparse.h"
 
 
index 4d49417836b676e3a21fea68bc8b4722fa345ec9..962357b699676cc580e0f4ff2285e05944aa77c6 100644 (file)
  */
 
 
-#include <stdlib.h>
-#include <string.h>
-
 #ifdef HAVE_CONFIG_H
 #  include "config.h"
 #endif
 
+#include <stdlib.h>
+#include <string.h>
+
 #include "gsth264parse.h"
 
 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
index 5e76dcc25093a5be552b852ec3c2bb81d5df8189..a3e56fc416178847f0e590b556964bd11ea452d4 100644 (file)
@@ -17,7 +17,7 @@ libgstmpegdemux_la_CFLAGS = \
        $(GST_PLUGINS_BASE_CFLAGS) \
        $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(LIBOIL_CFLAGS)
 libgstmpegdemux_la_LIBADD = \
-       $(GST_PLUGINS_BASE_CFLAGS) -lgsttag-$(GST_MAJORMINOR) \
+       $(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR) \
        $(GST_BASE_LIBS) $(GST_LIBS) $(LIBOIL_LIBS)
 libgstmpegdemux_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libgstmpegdemux_la_LIBTOOLFLAGS = --tag=disable-static