[gst-cvs] CVS: gstreamer/test sinesliders.c,1.2,1.3

Steve Baker sbaker3 at users.sourceforge.net
Wed Sep 12 04:31:02 PDT 2001


Update of /cvsroot/gstreamer/gstreamer/test
In directory usw-pr-cvs1:/tmp/cvs-serv18164

Modified Files:
	sinesliders.c 
Log Message:
update to reflect api changes

Index: sinesliders.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/test/sinesliders.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sinesliders.c	2001/09/10 17:24:06	1.2
+++ sinesliders.c	2001/09/12 11:30:00	1.3
@@ -49,7 +49,7 @@
   hbox = gtk_hbox_new(TRUE,0);
   gtk_container_add(GTK_CONTAINER(window),hbox);
 
-  volume_adj = (GtkAdjustment*)gtk_adjustment_new(1.0, 0.0, 1.0, 0.01, 0.01, 0.01);
+  volume_adj = (GtkAdjustment*)gtk_adjustment_new(1.0, 0.0, 1.0, 0.1, 0.01, 0.01);
   volume_slider = gtk_vscale_new(volume_adj);
   gtk_box_pack_start(GTK_BOX(hbox),volume_slider,TRUE,TRUE,0);
 
@@ -66,11 +66,11 @@
   gst_bin_add(GST_BIN(thread),sinesrc);
   gst_bin_add(GST_BIN(thread),osssink);
   gst_element_connect(sinesrc,"src",osssink,"sink");
-  gtk_object_set(GTK_OBJECT(sinesrc),"GstSineSrc::buffersize",64,NULL);
+  g_object_set(G_OBJECT(sinesrc),"buffersize",64,NULL);
  
   dpman = GST_ELEMENT_DPARAM_MANAGER(sinesrc);
-  volume = gst_dparam_new();
-  freq = gst_dparam_new();
+  volume = gst_dparam_new(G_TYPE_FLOAT);
+  freq = gst_dparam_new(G_TYPE_FLOAT);
 
   g_assert(gst_dpman_attach_dparam (dpman, "volume", volume));
   g_assert(gst_dpman_attach_dparam (dpman, "freq", freq));





More information about the Gstreamer-commits mailing list