]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blobdiff - tests/old/testsuite/elements/property.h
gst-indent run on core
[glsdk/gstreamer0-10.git] / tests / old / testsuite / elements / property.h
index a1756f1ca0d616447cb9b6534bf8cc9026497791..873b2cc27126296dd13e3cb7bfc71eb3af4ee59c 100644 (file)
@@ -1,12 +1,13 @@
 /* extracted from gst-launch */
 static void
-property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
+property_change_callback (GObject * object, GstObject * orig,
+    GParamSpec * pspec)
 {
-  GValue value = { 0, }; /* the important thing is that value.type = 0 */
+  GValue value = { 0, };       /* the important thing is that value.type = 0 */
   gchar *str = 0;
 
   if (pspec->flags & G_PARAM_READABLE) {
-    g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
+    g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
     g_object_get_property (G_OBJECT (orig), pspec->name, &value);
     /* fix current bug with g_strdup_value_contents not working with gint64 */
     if (G_IS_PARAM_SPEC_INT64 (pspec))
@@ -15,9 +16,8 @@ property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
       str = g_strdup_value_contents (&value);
     g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str);
     g_free (str);
-    g_value_unset(&value);
+    g_value_unset (&value);
   } else {
     g_warning ("Parameter not readable. What's up with that?");
   }
 }
-