From: Wim T. <wt...@us...> - 2002-03-31 16:27:42
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wtay Date: Sun Mar 31 2002 08:27:40 PST Log message: Get rid of the warning Modified files: tools : gst-launch.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-launch.c.diff?r1=1.15&r2=1.16 ====Begin Diffs==== Index: gst-launch.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-launch.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gst-launch.c 30 Mar 2002 19:31:14 -0000 1.15 +++ gst-launch.c 31 Mar 2002 16:27:28 -0000 1.16 @@ -45,13 +45,15 @@ gchar *str = 0; /* let's not print these out for the offset property... */ - if (pspec->flags & G_PARAM_READABLE && strcmp (pspec->name, "offset") != 0) { - g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec)); - g_object_get_property (G_OBJECT (orig), pspec->name, &value); - 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); + if (pspec->flags & G_PARAM_READABLE) { + if (strcmp (pspec->name, "offset") != 0) { + g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec)); + g_object_get_property (G_OBJECT (orig), pspec->name, &value); + 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); + } } else { g_warning ("Parameter not readable. What's up with that?"); } |