tests: fix mulawdec/mulawenc test for big endian systems
This commit is contained in:
parent
401782c19d
commit
e6f6d9045c
@ -500,6 +500,10 @@ elements_jpegenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) $(
|
|||||||
|
|
||||||
elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM)
|
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_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
|
||||||
elements_multifile_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_LIBS) $(LDADD) $(LIBM)
|
elements_multifile_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_LIBS) $(LDADD) $(LIBM)
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
#include <gst/audio/audio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
@ -29,7 +30,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw,"
|
GST_STATIC_CAPS ("audio/x-raw,"
|
||||||
"format = (string) S16LE, "
|
"format = (string) " GST_AUDIO_NE (S16) ", "
|
||||||
"rate = (int) 8000, "
|
"rate = (int) 8000, "
|
||||||
"channels = (int) 1, " "layout = (string)interleaved")
|
"channels = (int) 1, " "layout = (string)interleaved")
|
||||||
);
|
);
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
#include <gst/audio/audio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
@ -35,7 +36,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
|||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw,"
|
GST_STATIC_CAPS ("audio/x-raw,"
|
||||||
"format = (string) S16LE, "
|
"format = (string) " GST_AUDIO_NE (S16) ", "
|
||||||
"rate = (int) 8000, "
|
"rate = (int) 8000, "
|
||||||
"channels = (int) 1, " "layout = (string)interleaved")
|
"channels = (int) 1, " "layout = (string)interleaved")
|
||||||
);
|
);
|
||||||
@ -46,7 +47,7 @@ mulawenc_setup (void)
|
|||||||
GstCaps *src_caps;
|
GstCaps *src_caps;
|
||||||
|
|
||||||
src_caps = gst_caps_from_string ("audio/x-raw,"
|
src_caps = gst_caps_from_string ("audio/x-raw,"
|
||||||
"format = (string) S16LE, "
|
"format = (string) " GST_AUDIO_NE (S16) ", "
|
||||||
"rate = (int) 8000, "
|
"rate = (int) 8000, "
|
||||||
"channels = (int) 1, " "layout = (string)interleaved");
|
"channels = (int) 1, " "layout = (string)interleaved");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user