[gst-cvs] gst-plugins-base: tests: fix audioresample unit test on big endian architectures
Tim Mueller
tpm at kemper.freedesktop.org
Tue May 12 15:53:42 PDT 2009
Module: gst-plugins-base
Branch: master
Commit: a18128a3f69dc6311824c242ea4885589ad6c0c9
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=a18128a3f69dc6311824c242ea4885589ad6c0c9
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Tue May 12 23:51:08 2009 +0100
tests: fix audioresample unit test on big endian architectures
Don't hardcode endianness=1234 in the filtercaps, it will cause
pad link failures which will result in the test timing out.
---
tests/check/elements/.gitignore | 1 +
tests/check/elements/audioresample.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/check/elements/.gitignore b/tests/check/elements/.gitignore
index 269bacc..5cae8f2 100644
--- a/tests/check/elements/.gitignore
+++ b/tests/check/elements/.gitignore
@@ -22,4 +22,5 @@ ffmpegcolorspace
videoscale
vorbistag
playbin
+playbin2
subparse
diff --git a/tests/check/elements/audioresample.c b/tests/check/elements/audioresample.c
index 24f77a1..0a11ed8 100644
--- a/tests/check/elements/audioresample.c
+++ b/tests/check/elements/audioresample.c
@@ -689,7 +689,7 @@ GST_START_TEST (test_preference_passthrough)
pipeline = gst_parse_launch ("audiotestsrc num-buffers=1 name=src ! "
"audioresample ! audio/x-raw-int,channels=1,width=16,depth=16,"
- "endianness=1234,signed=true,rate=8000 ! "
+ "endianness=BYTE_ORDER,signed=true,rate=8000 ! "
"fakesink can-activate-pull=false", &error);
fail_unless (pipeline != NULL, "Error parsing pipeline: %s",
error ? error->message : "(invalid error)");
More information about the Gstreamer-commits
mailing list