Commit a357433a authored by Stefan Sauer's avatar Stefan Sauer
Browse files

docs: also fix wrong call order for controller in manual

parent ab8d5874
...@@ -59,6 +59,13 @@ ...@@ -59,6 +59,13 @@
csource = gst_interpolation_control_source_new (); csource = gst_interpolation_control_source_new ();
gst_interpolation_control_source_set_interpolation_mode(csource, GST_INTERPOLATE_LINEAR); gst_interpolation_control_source_set_interpolation_mode(csource, GST_INTERPOLATE_LINEAR);
</programlisting> </programlisting>
<para>
Now we need to assign the control-source to the gobject property. One
control source can only be assigned to one property.
</para>
<programlisting>
gst_controller_set_control_source (controller, "prop1", csource);
</programlisting>
<para> <para>
This control-source takes new property values from a list of time-stamped This control-source takes new property values from a list of time-stamped
parameter changes. The source can e.g. fill gaps by smoothing parameter parameter changes. The source can e.g. fill gaps by smoothing parameter
...@@ -76,13 +83,6 @@ ...@@ -76,13 +83,6 @@
gst_interpolation_control_source_set (csource, 0 * GST_SECOND, value1); gst_interpolation_control_source_set (csource, 0 * GST_SECOND, value1);
gst_interpolation_control_source_set (csource, 1 * GST_SECOND, value2); gst_interpolation_control_source_set (csource, 1 * GST_SECOND, value2);
</programlisting> </programlisting>
<para>
Finally we need to assign the control-source to the gobject property. One
control source can only be assigned to one property.
</para>
<programlisting>
gst_controller_set_control_source (controller, "prop1", csource);
</programlisting>
<para> <para>
Now everything is ready to play. One final note - the controller subsystem Now everything is ready to play. One final note - the controller subsystem
has a builtin live-mode. Even though a property has a control-source has a builtin live-mode. Even though a property has a control-source
......
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