tools/gst-inspect.c: Revert previous commit in preparation for an impromptu 0.10.17 release

Original commit message from CVS:
* tools/gst-inspect.c:
Revert previous commit in preparation for an impromptu 0.10.17 release
This commit is contained in:
Jan Schmidt 2008-01-30 12:39:51 +00:00
parent 5de8ceb166
commit bde7112b42
2 changed files with 9 additions and 16 deletions

View file

@ -1,3 +1,8 @@
2008-01-30 Jan Schmidt <jan.schmidt@sun.com>
* tools/gst-inspect.c:
Revert previous commit in preparation for an impromptu 0.10.17 release
2008-01-29 Sebastian Dröge <slomo@circular-chaos.org> 2008-01-29 Sebastian Dröge <slomo@circular-chaos.org>
* tools/gst-inspect.c: (print_interfaces), * tools/gst-inspect.c: (print_interfaces),

View file

@ -259,10 +259,10 @@ print_interfaces (GType type)
if (_name) if (_name)
g_print (_name); g_print (_name);
g_print ("\n"); g_print ("\n");
}
g_free (ifaces); g_free (ifaces);
} }
} }
}
static void static void
print_element_properties_info (GstElement * element) print_element_properties_info (GstElement * element)
@ -569,8 +569,6 @@ print_element_properties_info (GstElement * element)
g_print (" Write only\n"); g_print (" Write only\n");
else else
g_print ("\n"); g_print ("\n");
g_value_reset (&value);
} }
if (num_properties == 0) if (num_properties == 0)
n_print (" none\n"); n_print (" none\n");
@ -730,22 +728,17 @@ print_pad_info (GstElement * element)
pads = element->pads; pads = element->pads;
while (pads) { while (pads) {
gchar *name;
pad = GST_PAD (pads->data); pad = GST_PAD (pads->data);
pads = g_list_next (pads); pads = g_list_next (pads);
n_print (""); n_print ("");
name = gst_pad_get_name (pad);
if (gst_pad_get_direction (pad) == GST_PAD_SRC) if (gst_pad_get_direction (pad) == GST_PAD_SRC)
g_print (" SRC: '%s'", name); g_print (" SRC: '%s'", gst_pad_get_name (pad));
else if (gst_pad_get_direction (pad) == GST_PAD_SINK) else if (gst_pad_get_direction (pad) == GST_PAD_SINK)
g_print (" SINK: '%s'", name); g_print (" SINK: '%s'", gst_pad_get_name (pad));
else else
g_print (" UNKNOWN!!!: '%s'", name); g_print (" UNKNOWN!!!: '%s'", gst_pad_get_name (pad));
g_free (name);
g_print ("\n"); g_print ("\n");
@ -821,11 +814,7 @@ print_signal_info (GstElement * element)
if ((k == 0 && !(query->signal_flags & G_SIGNAL_ACTION)) || if ((k == 0 && !(query->signal_flags & G_SIGNAL_ACTION)) ||
(k == 1 && (query->signal_flags & G_SIGNAL_ACTION))) (k == 1 && (query->signal_flags & G_SIGNAL_ACTION)))
found_signals = g_slist_append (found_signals, query); found_signals = g_slist_append (found_signals, query);
else
g_free (query);
} }
g_free (signals);
signals = NULL;
} }
if (found_signals) { if (found_signals) {
@ -1161,7 +1150,6 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
print_signal_info (element); print_signal_info (element);
print_children_info (element); print_children_info (element);
gst_object_unref (element);
gst_object_unref (factory); gst_object_unref (factory);
g_free (_name); g_free (_name);