diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2011-12-19 11:13:45 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2011-12-19 22:52:30 +0100 |
commit | 2c7a8b924a7be5c92ce9347f37283a09239296ae (patch) | |
tree | 3ccfe5d53bb8a886693d0cd2e672fb57d53205ab /tests/benchmarks/controller.c | |
parent | 9c3c0fb251c03146dbf08acb5a588e6dd986c860 (diff) |
controlsources: refactor interpolation control source
Move most of the code to a GstTimedValueControlSource. Split out the trigger
'interpolation mode' to a new control source class. Move tests and examples to
new api. Update docs.
Fixes #610338
Diffstat (limited to 'tests/benchmarks/controller.c')
-rw-r--r-- | tests/benchmarks/controller.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/benchmarks/controller.c b/tests/benchmarks/controller.c index ff95e44f1..f196bd92e 100644 --- a/tests/benchmarks/controller.c +++ b/tests/benchmarks/controller.c @@ -126,7 +126,8 @@ main (gint argc, gchar * argv[]) for (i = 0; i < NUM_CP; i++) { g_value_set_double (&freq, g_random_double_range (50.0, 3000.0)); - gst_interpolation_control_source_set (csource, i * tick, &freq); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource, + i * tick, &freq); } ct = gst_util_get_timestamp (); @@ -143,7 +144,8 @@ main (gint argc, gchar * argv[]) for (i = 0; i < 100; i++) { j = g_random_int_range (0, NUM_CP - 1); g_value_set_double (&freq, g_random_double_range (50.0, 3000.0)); - gst_interpolation_control_source_set (csource, j * tick, &freq); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource, + j * tick, &freq); } ct = gst_util_get_timestamp (); |