diff options
Diffstat (limited to 'tests/check/libs/typefindhelper.c')
-rw-r--r-- | tests/check/libs/typefindhelper.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/check/libs/typefindhelper.c b/tests/check/libs/typefindhelper.c index 8a55f84..346539b 100644 --- a/tests/check/libs/typefindhelper.c +++ b/tests/check/libs/typefindhelper.c @@ -42,22 +42,20 @@ static GstStaticCaps foobar_caps = GST_STATIC_CAPS ("foo/x-bar"); /* make sure the entire data in the buffer is available for peeking */ GST_START_TEST (test_buffer_range) { - static gchar *foobar_exts[] = { (char *) "foobar", NULL }; - GstStructure *s; GstBuffer *buf; GstCaps *caps; fail_unless (gst_type_find_register (NULL, "foo/x-bar", - GST_RANK_PRIMARY + 50, foobar_typefind, (gchar **) foobar_exts, + GST_RANK_PRIMARY + 50, foobar_typefind, "foobar", FOOBAR_CAPS, NULL, NULL)); buf = gst_buffer_new (); fail_unless (buf != NULL); - gst_buffer_take_memory (buf, -1, + gst_buffer_insert_memory (buf, -1, gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY, - (gpointer) vorbisid, NULL, 30, 0, 30)); + (gpointer) vorbisid, 30, 0, 30, NULL, NULL)); caps = gst_type_find_helper_for_buffer (NULL, buf, NULL); fail_unless (caps != NULL); |