tests: fix some more tests

This commit is contained in:
Wim Taymans 2012-02-06 13:44:20 +01:00
parent 408873a884
commit 41648135b2
3 changed files with 20 additions and 5 deletions

View file

@ -38,18 +38,22 @@ GstPad *mysrcpad, *mysinkpad;
"audio/x-raw, " \
"channels = (int) 1, " \
"rate = (int) 44100, " \
"layout = (string) interleaved, " \
"format = (string) " GST_AUDIO_NE(S16)
#define PANORAMA_STEREO_CAPS_STRING \
"audio/x-raw, " \
"channels = (int) 2, " \
"channel-mask = (bitmask) 3, " \
"rate = (int) 44100, " \
"layout = (string) interleaved, " \
"format = (string) " GST_AUDIO_NE(S16)
#define PANORAMA_WRONG_CAPS_STRING \
"audio/x-raw, " \
"channels = (int) 5, " \
"rate = (int) 44100, " \
"layout = (string) interleaved, " \
"format = (string) " GST_AUDIO_NE(U16)
@ -59,7 +63,8 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_STATIC_CAPS ("audio/x-raw, "
"channels = (int) 2, "
"rate = (int) [ 1, MAX ], "
"format = (string) " GST_AUDIO_NE(S16))
"layout = (string) interleaved, "
"format = (string) " GST_AUDIO_NE (S16))
);
static GstStaticPadTemplate msrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
@ -67,7 +72,8 @@ static GstStaticPadTemplate msrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS ("audio/x-raw, "
"channels = (int) 1, "
"rate = (int) [ 1, MAX ], "
"format = (string) " GST_AUDIO_NE(S16))
"layout = (string) interleaved, "
"format = (string) " GST_AUDIO_NE (S16))
);
static GstStaticPadTemplate ssrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
@ -75,7 +81,8 @@ static GstStaticPadTemplate ssrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_CAPS ("audio/x-raw, "
"channels = (int) 2, "
"rate = (int) [ 1, MAX ], "
"format = (string) " GST_AUDIO_NE(S16))
"layout = (string) interleaved, "
"format = (string) " GST_AUDIO_NE (S16))
);
static GstElement *

View file

@ -35,12 +35,14 @@ GstPad *mysrcpad, *mysinkpad;
#define AUDIO_WSINC_BAND_CAPS_STRING_32 \
"audio/x-raw, " \
"format = (string) " GST_AUDIO_NE (F32) ", " \
"layout = (string) interleaved, " \
"channels = (int) 1, " \
"rate = (int) 44100"
#define AUDIO_WSINC_BAND_CAPS_STRING_64 \
"audio/x-raw, " \
"format = (string) " GST_AUDIO_NE (F64) ", " \
"layout = (string) interleaved, " \
"channels = (int) 1, " \
"rate = (int) 44100"
@ -51,6 +53,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " FORMATS ", "
"layout = (string) interleaved, "
"channels = (int) 1, " "rate = (int) 44100")
);
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
@ -58,6 +61,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " FORMATS ", "
"layout = (string) interleaved, "
"channels = (int) 1, " "rate = (int) 44100")
);

View file

@ -35,12 +35,14 @@ GstPad *mysrcpad, *mysinkpad;
#define AUDIO_WSINC_LIMIT_CAPS_STRING_32 \
"audio/x-raw, " \
"format = (string) " GST_AUDIO_NE (F32) ", " \
"layout = (string) interleaved, " \
"channels = (int) 1, " \
"rate = (int) 44100"
#define AUDIO_WSINC_LIMIT_CAPS_STRING_64 \
"audio/x-raw, " \
"format = (string) " GST_AUDIO_NE (F64) ", " \
"layout = (string) interleaved, " \
"channels = (int) 1, " \
"rate = (int) 44100"
@ -50,14 +52,16 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"channels = (string) " FORMATS ", "
"format = (string) " FORMATS ", "
"layout = (string) interleaved, "
"channels = (int) 1, " "rate = (int) 44100")
);
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"channels = (string) " FORMATS ", "
"format = (string) " FORMATS ", "
"layout = (string) interleaved, "
"channels = (int) 1, " "rate = (int) 44100")
);