Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / tools / gst-inspect.c
index a2f9393..82042d1 100644 (file)
@@ -388,7 +388,7 @@ print_element_properties_info (GstElement * element)
         g_print ("Range: %lu - %lu Default: %lu ",
             pulong->minimum, pulong->maximum, g_value_get_ulong (&value));
 
-        GST_ERROR ("%s: property '%s' of type char: consider changing to "
+        GST_ERROR ("%s: property '%s' of type ulong: consider changing to "
             "uint/uint64", GST_OBJECT_NAME (element),
             g_param_spec_get_name (param));
         break;
@@ -1302,6 +1302,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
 
   element = gst_element_factory_create (factory, NULL);
   if (!element) {
+    gst_object_unref (factory);
     g_print ("couldn't construct element for some reason\n");
     return -1;
   }