#include <gst/gst.h>
#include <gst/controller/gstlfocontrolsource.h>
+#include <gst/controller/gstcontrolbindingdirect.h>
#include <stdlib.h>
csource = gst_lfo_control_source_new ();
gst_object_add_control_binding (GST_OBJECT_CAST (shapewipe),
- gst_control_binding_new (GST_OBJECT_CAST (shapewipe), "position",
+ gst_control_binding_direct_new (GST_OBJECT_CAST (shapewipe), "position",
GST_CONTROL_SOURCE (csource)));
g_value_init (&val, G_TYPE_FLOAT);
#include <gst/gst.h>
#include <gst/controller/gstinterpolationcontrolsource.h>
+#include <gst/controller/gstcontrolbindingdirect.h>
static void
event_loop (GstElement * bin)
if (!cs) {
cs = gst_interpolation_control_source_new ();
gst_object_add_control_binding (elem,
- gst_control_binding_new (elem, name, GST_CONTROL_SOURCE (cs)));
+ gst_control_binding_direct_new (elem, name,
+ GST_CONTROL_SOURCE (cs)));
g_object_set (cs, "mode", GST_INTERPOLATION_MODE_NONE, NULL);
g_hash_table_insert (css, (gpointer) name, cs);
gst_object_unref (cs);