diff options
Diffstat (limited to 'tests/check/elements/wavpackparse.c')
-rw-r--r-- | tests/check/elements/wavpackparse.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/check/elements/wavpackparse.c b/tests/check/elements/wavpackparse.c index 80cef399..7a3b8cc1 100644 --- a/tests/check/elements/wavpackparse.c +++ b/tests/check/elements/wavpackparse.c @@ -59,7 +59,11 @@ guint8 test_file[] = { static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS_ANY); + GST_STATIC_CAPS ("audio/x-wavpack, " + "width = (int) 16, " + "channels = (int) 1, " + "rate = (int) 44100, " "framed = (boolean) TRUE")); + static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -175,11 +179,13 @@ GST_START_TEST (test_parsing_valid_frames) case 0:{ fail_unless_equals_int (GST_BUFFER_TIMESTAMP (outbuffer), 0); fail_unless_equals_int (GST_BUFFER_OFFSET (outbuffer), 0); + fail_unless_equals_int (GST_BUFFER_OFFSET_END (outbuffer), 25600); break; } case 1:{ fail_unless_equals_int (GST_BUFFER_TIMESTAMP (outbuffer), 580498866); fail_unless_equals_int (GST_BUFFER_OFFSET (outbuffer), 25600); + fail_unless_equals_int (GST_BUFFER_OFFSET_END (outbuffer), 51200); break; } } |