check/gst-libs/controller.c: Update for controller api change.
authorAndy Wingo <wingo@pobox.com>
Mon, 26 Sep 2005 15:49:23 +0000 (15:49 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 26 Sep 2005 15:49:23 +0000 (15:49 +0000)
Original commit message from CVS:
2005-09-26  Andy Wingo  <wingo@pobox.com>

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

ChangeLog
check/gst-libs/controller.c
tests/check/libs/controller.c

index 8190c5c..3cbc9e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 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
index 066f0b7..affeec5 100644 (file)
@@ -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);
index 066f0b7..affeec5 100644 (file)
@@ -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);