GST_CONTROL_SOURCE (cs));
fail_unless (res == FALSE, NULL);
- g_object_unref (cs);
+ gst_object_unref (cs);
gst_object_unref (elem);
}
"readonly", GST_CONTROL_SOURCE (cs)));
fail_unless (res == FALSE, NULL);
- g_object_unref (cs);
+ gst_object_unref (cs);
gst_object_unref (elem);
}
"static", GST_CONTROL_SOURCE (cs)));
fail_unless (res == FALSE, NULL);
- g_object_unref (cs);
+ gst_object_unref (cs);
gst_object_unref (elem);
}
GST_CONTROL_SOURCE (cs)));
fail_unless (res == FALSE, NULL);
- g_object_unref (cs);
+ gst_object_unref (cs);
gst_object_unref (elem);
}
GST_CONTROL_SOURCE (cs));
fail_unless (res == TRUE, NULL);
- g_object_unref (cs);
+ gst_object_unref (cs);
gst_object_unref (elem);
}
GST_CONTROL_SOURCE (cs2));
fail_unless (res == TRUE, NULL);
- g_object_unref (cs1);
- g_object_unref (cs2);
+ gst_object_unref (cs1);
+ gst_object_unref (cs2);
gst_object_unref (elem);
}
res = gst_object_set_control_source (GST_OBJECT (elem), "int", NULL);
fail_unless (!res, NULL);
- g_object_unref (cs);
+ gst_object_unref (cs);
gst_object_unref (elem);
}
fail_unless (test_csource != NULL, NULL);
fail_unless (test_csource == csource);
fail_unless_equals_int (G_OBJECT (csource)->ref_count, 3);
- g_object_unref (test_csource);
- g_object_unref (csource);
+ gst_object_unref (test_csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
fail_unless (gst_object_set_control_source (GST_OBJECT (elem), "double",
csource));
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
fail_unless (gst_object_sync_values (GST_OBJECT (elem), 0LL));
fail_unless_equals_int (GST_TEST_OBJ (elem)->val_int, 50);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
fail_unless_equals_int (GST_TEST_OBJ (elem)->val_int, 50);
fail_unless_equals_float (GST_TEST_OBJ (elem)->val_double, 50.0);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_SECOND);
/* unref objects */
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_SECOND);
/* unref objects */
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
fail_unless (res, NULL);
fail_unless (gst_timed_value_control_source_get_count (cs) == 2);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_SECOND);
res = gst_timed_value_control_source_set (cs, 2 * GST_SECOND, 1.0);
fail_unless (res, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_SECOND);
res = gst_timed_value_control_source_set (cs, 4 * GST_SECOND, 0.8);
fail_unless (res, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_SECOND);
res = gst_timed_value_control_source_set (cs, 2 * GST_SECOND, 0.4);
fail_unless (res, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps and verify that it used linear
* interpolation as we don't gave enough control points
gst_timed_value_control_source_unset_all (cs);
fail_if (gst_timed_value_control_source_unset (cs, 2 * GST_SECOND));
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
gst_timed_value_control_source_unset_all (cs);
GST_TEST_OBJ (elem)->val_int = 0;
- g_object_unref (csource);
+ gst_object_unref (csource);
/* verify value again */
gst_object_sync_values (GST_OBJECT (elem), 1 * GST_SECOND);
g_free (g_values);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
res = gst_timed_value_control_source_set (cs, 4 * GST_SECOND, -2.0);
fail_unless (res, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps and see if clipping works */
/* 200.0 */
gst_object_sync_values (GST_OBJECT (elem), 2 * GST_SECOND);
fail_unless_equals_int (GST_TEST_OBJ (elem)->val_int, 100);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
res = gst_timed_value_control_source_set (cs, 2 * GST_SECOND, 1.0);
fail_unless (res, NULL);
- g_object_unref (csource1);
+ gst_object_unref (csource1);
/* set control values */
cs = (GstTimedValueControlSource *) csource2;
res = gst_timed_value_control_source_set (cs, 2 * GST_SECOND, 0.4);
fail_unless (res, NULL);
- g_object_unref (csource2);
+ gst_object_unref (csource2);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_SECOND);
fail_unless (gst_timed_value_control_source_set_from_list (
(GstTimedValueControlSource *) csource, list));
- g_object_unref (csource);
+ gst_object_unref (csource);
/* allocated GstTimedValue now belongs to the controller, but list not */
g_free (tval);
res = gst_timed_value_control_source_set (cs, 4 * GST_SECOND, 0.0);
fail_unless (res, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps after first control point */
gst_object_sync_values (GST_OBJECT (elem), 2 * GST_SECOND);
fail_unless (res, NULL);
fail_unless (gst_timed_value_control_source_get_count (cs) == 0);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
"frequency", 1.0, "timeshift", (GstClockTime) 0,
"amplitude", 0.5, "offset", 0.5, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
"frequency", 1.0, "timeshift", 250 * GST_MSECOND,
"amplitude", 0.5, "offset", 0.5, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
"frequency", 1.0, "timeshift", (GstClockTime) 0,
"amplitude", 0.5, "offset", 0.5, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
"frequency", 1.0, "timeshift", (GstClockTime) 0,
"amplitude", 0.5, "offset", 0.5, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
"frequency", 1.0, "timeshift", (GstClockTime) 0,
"amplitude", 0.5, "offset", 0.5, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
"frequency", 1.0, "timeshift", (GstClockTime) 0,
"amplitude", 0.5, "offset", 0.5, NULL);
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
fail_unless (gst_object_set_control_source (GST_OBJECT (elem), "int",
GST_CONTROL_SOURCE (csource)));
- g_object_unref (csource);
+ gst_object_unref (csource);
/* now pull in values for some timestamps */
gst_object_sync_values (GST_OBJECT (elem), 0 * GST_MSECOND);
gst_object_sync_values (GST_OBJECT (elem), 2 * GST_SECOND);
fail_unless_equals_int (GST_TEST_OBJ (elem)->val_int, 100);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}
gst_object_sync_values (GST_OBJECT (elem), 2 * GST_SECOND);
fail_unless_equals_int (GST_TEST_OBJ (elem)->val_int, 100);
- g_object_unref (csource);
+ gst_object_unref (csource);
gst_object_unref (elem);
}