+2007-11-07 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * configure.ac:
+ * tests/check/pipelines/gio.c: (GST_START_TEST):
+ Require GIO >= 0.1.2 and adjust unit test for an API change.
+
2007-11-07 Sebastian Dröge <slomo@circular-chaos.org>
* tests/icles/equalizer-test.c: (do_slider_fiddling):
dnl *** libgio ***
translit(dnm, m, l) AM_CONDITIONAL(USE_GIO, true)
AG_GST_CHECK_FEATURE(GIO, [GIO library], gio, [
- PKG_CHECK_MODULES(GIO, gio-2.0 >= 0.1, HAVE_GIO="yes", [
+ PKG_CHECK_MODULES(GIO, gio-2.0 >= 0.1.2, HAVE_GIO="yes", [
HAVE_GIO="no"
AC_MSG_RESULT(no)
])
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);
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;