Commit f3f54403 authored by Wim Taymans's avatar Wim Taymans
Browse files

tests: fix more unit tests

parent 44d36921
......@@ -103,10 +103,10 @@ on_handoff (GstElement * object, GstBuffer * buffer, GstPad * pad,
{
if (!have_data) {
GstMapInfo map;
gdouble *data;
gfloat *data;
gst_buffer_map (buffer, &map, GST_MAP_READ);
data = (gdouble *) map.data;
fail_unless (gst_buffer_map (buffer, &map, GST_MAP_READ));
data = (gfloat *) map.data;
fail_unless (map.size > 5 * sizeof (gdouble));
fail_unless (data[0] == 0.0);
......
......@@ -38,9 +38,10 @@ GstPad *mysrcpad, *mysinkpad;
#define INVERT_CAPS_STRING \
"audio/x-raw, " \
"audio/x-raw, " \
"format = (string) "GST_AUDIO_NE(S16)", " \
"channels = (int) 1, " \
"layout = (string) interleaved, " \
"channels = (int) 1, " \
"rate = (int) 44100"
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
......@@ -48,6 +49,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " GST_AUDIO_NE (S16) ", "
"layout = (string) interleaved, "
"channels = (int) 1, " "rate = (int) [ 1, MAX ]")
);
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
......@@ -55,6 +57,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " GST_AUDIO_NE (S16) ", "
"layout = (string) interleaved, "
"channels = (int) 1, " "rate = (int) [ 1, MAX ]")
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment