mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
tests: fix audiomixer test on big endian systems
This commit is contained in:
parent
e9cb4c58ab
commit
6df60cfb6a
2 changed files with 5 additions and 12 deletions
|
@ -285,7 +285,7 @@ AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) \
|
|||
LDADD = $(GST_CHECK_LIBS)
|
||||
|
||||
elements_audiomixer_LDADD = $(GST_BASE_LIBS) -lgstbase-@GST_API_VERSION@ $(LDADD)
|
||||
elements_audiomixer_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
||||
elements_audiomixer_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
||||
|
||||
# parser unit test convenience lib
|
||||
noinst_LTLIBRARIES = libparser.la
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <gst/check/gstcheck.h>
|
||||
#include <gst/check/gstconsistencychecker.h>
|
||||
#include <gst/audio/audio.h>
|
||||
#include <gst/base/gstbasesrc.h>
|
||||
|
||||
static GMainLoop *main_loop;
|
||||
|
@ -86,7 +87,7 @@ GST_START_TEST (test_filter_caps)
|
|||
GstPad *pad;
|
||||
|
||||
filter_caps = gst_caps_new_simple ("audio/x-raw",
|
||||
"format", G_TYPE_STRING, "F32LE",
|
||||
"format", G_TYPE_STRING, GST_AUDIO_NE (F32),
|
||||
"layout", G_TYPE_STRING, "interleaved",
|
||||
"rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 1, NULL);
|
||||
|
||||
|
@ -955,11 +956,7 @@ GST_START_TEST (test_clip)
|
|||
gst_pad_send_event (sinkpad, gst_event_new_stream_start ("test"));
|
||||
|
||||
caps = gst_caps_new_simple ("audio/x-raw",
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
"format", G_TYPE_STRING, "S16BE",
|
||||
#else
|
||||
"format", G_TYPE_STRING, "S16LE",
|
||||
#endif
|
||||
"format", G_TYPE_STRING, GST_AUDIO_NE (S16),
|
||||
"layout", G_TYPE_STRING, "interleaved",
|
||||
"rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 2, NULL);
|
||||
|
||||
|
@ -1405,11 +1402,7 @@ run_sync_test (SendBuffersFunction send_buffers,
|
|||
gst_pad_send_event (queue2_sinkpad, gst_event_new_stream_start ("test"));
|
||||
|
||||
caps = gst_caps_new_simple ("audio/x-raw",
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
"format", G_TYPE_STRING, "S16BE",
|
||||
#else
|
||||
"format", G_TYPE_STRING, "S16LE",
|
||||
#endif
|
||||
"format", G_TYPE_STRING, GST_AUDIO_NE (S16),
|
||||
"layout", G_TYPE_STRING, "interleaved",
|
||||
"rate", G_TYPE_INT, 1000, "channels", G_TYPE_INT, 1, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue