tests: fix mulawdec/mulawenc test for big endian systems
authorTim-Philipp Müller <tim@centricular.com>
Fri, 24 Oct 2014 23:53:39 +0000 (00:53 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 25 Oct 2014 10:09:57 +0000 (11:09 +0100)
tests/check/Makefile.am
tests/check/elements/mulawdec.c
tests/check/elements/mulawenc.c

index e15e295..0d3288a 100644 (file)
@@ -500,6 +500,10 @@ elements_jpegenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) $(
 
 elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM)
 
+elements_mulawdec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
+
+elements_mulawenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
+
 elements_multifile_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
 elements_multifile_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_LIBS) $(LDADD) $(LIBM)
 
index 94c6339..cb6f036 100644 (file)
@@ -20,6 +20,7 @@
 #endif
 
 #include <gst/check/gstcheck.h>
+#include <gst/audio/audio.h>
 #include <string.h>
 
 static GstPad *mysrcpad, *mysinkpad;
@@ -29,7 +30,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("audio/x-raw,"
-        "format = (string) S16LE, "
+        "format = (string) " GST_AUDIO_NE (S16) ", "
         "rate = (int) 8000, "
         "channels = (int) 1, " "layout = (string)interleaved")
     );
index 3722186..757f3ee 100644 (file)
@@ -20,6 +20,7 @@
 #endif
 
 #include <gst/check/gstcheck.h>
+#include <gst/audio/audio.h>
 #include <string.h>
 
 static GstPad *mysrcpad, *mysinkpad;
@@ -35,7 +36,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("audio/x-raw,"
-        "format = (string) S16LE, "
+        "format = (string) " GST_AUDIO_NE (S16) ", "
         "rate = (int) 8000, "
         "channels = (int) 1, " "layout = (string)interleaved")
     );
@@ -46,7 +47,7 @@ mulawenc_setup (void)
   GstCaps *src_caps;
 
   src_caps = gst_caps_from_string ("audio/x-raw,"
-      "format = (string) S16LE, "
+      "format = (string) " GST_AUDIO_NE (S16) ", "
       "rate = (int) 8000, "
       "channels = (int) 1, " "layout = (string)interleaved");