From 7e75f21a412f8a43d3f109faf857b3d2efbf1af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 25 Oct 2014 18:50:42 +0100 Subject: [PATCH] tests: fix audiomixer test on big endian systems --- tests/check/elements/audiomixer.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/check/elements/audiomixer.c b/tests/check/elements/audiomixer.c index 9afca2c14f..ff9703b298 100644 --- a/tests/check/elements/audiomixer.c +++ b/tests/check/elements/audiomixer.c @@ -33,6 +33,7 @@ #include #include +#include #include 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);