mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
controller: adapt to control binding changes
This commit is contained in:
parent
535d66102c
commit
ba2ec3ff98
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ main (gint argc, gchar ** argv)
|
||||||
|
|
||||||
csource = gst_lfo_control_source_new ();
|
csource = gst_lfo_control_source_new ();
|
||||||
|
|
||||||
gst_object_set_control_binding (GST_OBJECT_CAST (shapewipe),
|
gst_object_add_control_binding (GST_OBJECT_CAST (shapewipe),
|
||||||
gst_control_binding_new (GST_OBJECT_CAST (shapewipe), "position",
|
gst_control_binding_new (GST_OBJECT_CAST (shapewipe), "position",
|
||||||
GST_CONTROL_SOURCE (csource)));
|
GST_CONTROL_SOURCE (csource)));
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ set_program (GstObject * elem, GstStructure * prog)
|
||||||
cs = g_hash_table_lookup (css, name);
|
cs = g_hash_table_lookup (css, name);
|
||||||
if (!cs) {
|
if (!cs) {
|
||||||
cs = gst_interpolation_control_source_new ();
|
cs = gst_interpolation_control_source_new ();
|
||||||
gst_object_set_control_binding (elem,
|
gst_object_add_control_binding (elem,
|
||||||
gst_control_binding_new (elem, name, GST_CONTROL_SOURCE (cs)));
|
gst_control_binding_new (elem, name, GST_CONTROL_SOURCE (cs)));
|
||||||
g_object_set (cs, "mode", GST_INTERPOLATION_MODE_NONE, NULL);
|
g_object_set (cs, "mode", GST_INTERPOLATION_MODE_NONE, NULL);
|
||||||
g_hash_table_insert (css, (gpointer) name, cs);
|
g_hash_table_insert (css, (gpointer) name, cs);
|
||||||
|
|
Loading…
Reference in a new issue