controller: no need to explicitely add controlled properties anymore
authorStefan Sauer <ensonic@users.sf.net>
Sat, 12 Nov 2011 13:42:27 +0000 (15:42 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 14 Nov 2011 09:08:09 +0000 (10:08 +0100)
tests/examples/shapewipe/shapewipe-example.c
tests/examples/v4l2/camctrl.c

index 855ea40815acd4adf83b6a9f33382febb72b8f6a..dfd4b6e4d22d2272c5fec19019a07cbb0050d8f9 100644 (file)
@@ -96,11 +96,6 @@ main (gint argc, gchar ** argv)
 
   shapewipe = gst_bin_get_by_name (GST_BIN (pipeline), "shape");
 
-  if (!gst_object_control_properties (GST_OBJECT (shapewipe), "position", NULL)) {
-    g_print ("can't control shapewipe element\n");
-    return -3;
-  }
-
   csource = gst_lfo_control_source_new ();
 
   gst_object_set_control_source (GST_OBJECT (shapewipe), "position",
index 28199672dce8b8b169a860ed9694220333871a53..a252b5d04d0dce3df68b6758c908f4d6ad7388db 100644 (file)
@@ -168,13 +168,6 @@ main (gint argc, gchar ** argv)
     return -1;
   }
 
-  /* get the controller */
-  if (!gst_object_control_properties (GST_OBJECT (src), "brightness",
-          "contrast", "saturation", NULL)) {
-    GST_WARNING ("can't control source element");
-    return -1;
-  }
-
   /* programm a pattern of events */
 #if 0
   prog = gst_structure_from_string ("program"