Commit e2cff096 authored by Andy Wingo Wingo's avatar Andy Wingo Wingo
Browse files

check/gst-libs/controller.c: Update for controller api change.

Original commit message from CVS:
2005-09-26  Andy Wingo  <wingo@pobox.com>

* check/gst-libs/controller.c: Update for controller api change.
parent 2f46ef71
2005-09-26 Andy Wingo <wingo@pobox.com>
* check/gst-libs/controller.c: Update for controller api change.
* configure.ac:
* tests/Makefile.am:
* tests/memchunk: Remove memchunk benchmark stuff, this is taken
......
......@@ -468,11 +468,11 @@ GST_START_TEST (controller_interpolate_none)
fail_unless (res, NULL);
/* now pull in values for some timestamps */
gst_controller_sink_values (ctrl, 0 * GST_SECOND);
gst_controller_sync_values (ctrl, 0 * GST_SECOND);
fail_unless (GST_TEST_MONO_SOURCE (elem)->val_ulong == 0, NULL);
gst_controller_sink_values (ctrl, 1 * GST_SECOND);
gst_controller_sync_values (ctrl, 1 * GST_SECOND);
fail_unless (GST_TEST_MONO_SOURCE (elem)->val_ulong == 0, NULL);
gst_controller_sink_values (ctrl, 2 * GST_SECOND);
gst_controller_sync_values (ctrl, 2 * GST_SECOND);
fail_unless (GST_TEST_MONO_SOURCE (elem)->val_ulong == 100, NULL);
GST_INFO ("controller->ref_count=%d", G_OBJECT (ctrl)->ref_count);
......@@ -491,7 +491,7 @@ GST_START_TEST (controller_helper_any_gobject)
elem = gst_element_factory_make ("bin", "test_elem");
/* that element is not controllable */
res = gst_object_sink_values (G_OBJECT (elem), 0LL);
res = gst_object_sync_values (G_OBJECT (elem), 0LL);
fail_unless (res == FALSE, NULL);
gst_object_unref (elem);
......
......@@ -468,11 +468,11 @@ GST_START_TEST (controller_interpolate_none)
fail_unless (res, NULL);
/* now pull in values for some timestamps */
gst_controller_sink_values (ctrl, 0 * GST_SECOND);
gst_controller_sync_values (ctrl, 0 * GST_SECOND);
fail_unless (GST_TEST_MONO_SOURCE (elem)->val_ulong == 0, NULL);
gst_controller_sink_values (ctrl, 1 * GST_SECOND);
gst_controller_sync_values (ctrl, 1 * GST_SECOND);
fail_unless (GST_TEST_MONO_SOURCE (elem)->val_ulong == 0, NULL);
gst_controller_sink_values (ctrl, 2 * GST_SECOND);
gst_controller_sync_values (ctrl, 2 * GST_SECOND);
fail_unless (GST_TEST_MONO_SOURCE (elem)->val_ulong == 100, NULL);
GST_INFO ("controller->ref_count=%d", G_OBJECT (ctrl)->ref_count);
......@@ -491,7 +491,7 @@ GST_START_TEST (controller_helper_any_gobject)
elem = gst_element_factory_make ("bin", "test_elem");
/* that element is not controllable */
res = gst_object_sink_values (G_OBJECT (elem), 0LL);
res = gst_object_sync_values (G_OBJECT (elem), 0LL);
fail_unless (res == FALSE, NULL);
gst_object_unref (elem);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment