From 3025c9d26a93ad94fbfb569e5dad6827be9500e0 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 10 Sep 2001 17:24:06 +0000 Subject: [PATCH] s/Dparam/DParam/ Original commit message from CVS: s/Dparam/DParam/ --- test/sinesliders.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/test/sinesliders.c b/test/sinesliders.c index 007b758532..71402bb41c 100644 --- a/test/sinesliders.c +++ b/test/sinesliders.c @@ -13,18 +13,16 @@ static gint quit_live(GtkWidget *window, GdkEventAny *e, gpointer data) { // gtk_object_set(GTK_OBJECT(element),"volume",adj->value,NULL); //} -static void dynparm_value_changed(GtkAdjustment *adj,GstDparam *dparam) { - GstDparamPoint *point; - GValue *value; - g_assert(dparam != NULL); - g_assert(GST_IS_DPARAM (dparam)); +static void dynparm_value_changed(GtkAdjustment *adj,GstDParam *dparam) { + GValue **point; + g_return_if_fail(dparam != NULL); + g_return_if_fail(GST_IS_DPARAM (dparam)); point = GST_DPARAM_GET_POINT(dparam, 0LL); GST_DPARAM_LOCK(dparam); - value = point->values[0]; - g_print("setting value from %f to %f\n", g_value_get_float(value), adj->value); - g_value_set_float(value, adj->value); + g_print("setting value from %f to %f\n", g_value_get_float(point[0]), adj->value); + g_value_set_float(point[0], adj->value); GST_DPARAM_READY_FOR_UPDATE(dparam) = TRUE; GST_DPARAM_UNLOCK(dparam); } @@ -39,8 +37,8 @@ int main(int argc,char *argv[]) { GtkWidget *freq_slider; GstElement *thread, *sinesrc, *osssink; - GstDparamManager *dpman; - GstDparam *volume, *freq; + GstDParamManager *dpman; + GstDParam *volume, *freq; gtk_init(&argc,&argv); gst_init(&argc,&argv); -- 2.34.1