diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-07 16:47:32 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-07 16:47:32 +0000 |
commit | 271cef54c237d79e5ab2742de84a70e2de525246 (patch) | |
tree | a4892b242b2d7fd0ff9d6dd0c0de2fdcb06007f1 | |
parent | ad71ce1337a88bfe5664366ba2e2a69097895d02 (diff) | |
download | gst-plugins-bad-271cef54c237d79e5ab2742de84a70e2de525246.tar.gz gst-plugins-bad-271cef54c237d79e5ab2742de84a70e2de525246.tar.bz2 gst-plugins-bad-271cef54c237d79e5ab2742de84a70e2de525246.zip |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | tests/check/pipelines/gio.c | 8 |
3 files changed, 9 insertions, 7 deletions
@@ -1,5 +1,11 @@ 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): Fix gain ranges for the latest equalizer changes. diff --git a/configure.ac b/configure.ac index fb6334e9..36b7d7ee 100644 --- a/configure.ac +++ b/configure.ac @@ -577,7 +577,7 @@ AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [ 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) ]) 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; |