From 271cef54c237d79e5ab2742de84a70e2de525246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 7 Nov 2007 16:47:32 +0000 Subject: Require GIO >= 0.1.2 and adjust unit test for an API change. Original commit message from CVS: * configure.ac: * tests/check/pipelines/gio.c: (GST_START_TEST): Require GIO >= 0.1.2 and adjust unit test for an API change. --- tests/check/pipelines/gio.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/check') diff --git a/tests/check/pipelines/gio.c b/tests/check/pipelines/gio.c index 75971237..5c6564b9 100644 --- a/tests/check/pipelines/gio.c +++ b/tests/check/pipelines/gio.c @@ -84,7 +84,7 @@ GST_START_TEST (test_memory_stream) out_data = g_byte_array_new (); output = G_MEMORY_OUTPUT_STREAM (g_memory_output_stream_new (out_data)); - g_memory_output_stream_set_free_on_close (output, FALSE); + g_memory_output_stream_set_free_data (output, TRUE); loop = g_main_loop_new (NULL, FALSE); @@ -115,17 +115,13 @@ GST_START_TEST (test_memory_stream) fail_unless (got_eos); - for (i = 0; i < 512; i++) { + for (i = 0; i < 512; i++) fail_unless_equals_int (in_data[i], out_data->data[i]); - } - - g_byte_array_free (out_data, TRUE); g_object_unref (input); g_object_unref (output); g_main_loop_unref (loop); - } GST_END_TEST; -- cgit v1.2.1