summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2001-01-29 00:06:02 +0000
committerWim Taymans <wim.taymans@gmail.com>2001-01-29 00:06:02 +0000
commit51cbf22624ec32a672d72f04942fab32bb83cdb9 (patch)
tree53b9734c49ba656d0a950a005629285b9eefed85 /tools
parentd0abadd974489acc4bf4f016a7b65b5febb80d60 (diff)
This is a megapatch with the following changes:
Original commit message from CVS: This is a megapatch with the following changes: - moved the gchar *name to GstObject, removed the ones in GstElement and GstPad. - moved the parent handling completely into GstObject. This cause *all* of the plugins to fail (except those that used gst_pad_get_parent) - rearanged the XML save handling. - GstObject now has a class function save/restore_thyself. - GstObject has a generic method gst_object_save_thyself, this makes it possible to fire a signal wehever a new object is loaded. This is needed so we can add XML save hooks. - GstXML API has changed slightly. You now have to create a GstXML object first before you can actually load something. This makes it possible to attach a signal to GstXML whenever an object is loaded. I'm not sure we will keep this interface. - GstObject can now print the path_string without knowing about the GstPad and GstElement types. - Added gst_bin_get_by_name_recurse_up to lookup an element in the current element hierarchy. - added XML namespaces to the saved pipelines the namespace is: http://gstreamer.net/gst-core/1.0/ namespaces are needed to distinguish user generated XML from the core XML. Note that the plugins still contain a macro GST_OBJECT_PARENT that will be replaced with gst_pad_get_parent shortly.
Diffstat (limited to 'tools')
-rw-r--r--tools/gstreamer-inspect.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gstreamer-inspect.c b/tools/gstreamer-inspect.c
index da1876c37f..a95392e9cb 100644
--- a/tools/gstreamer-inspect.c
+++ b/tools/gstreamer-inspect.c
@@ -84,6 +84,7 @@ struct _GstPropsEntry {
gint print_element_info(GstElementFactory *factory) {
GstElement *element;
+ GstObjectClass *gstobject_class;
GstElementClass *gstelement_class;
GList *pads, *caps;
GstPad *pad;
@@ -99,6 +100,8 @@ gint print_element_info(GstElementFactory *factory) {
g_print ("couldn't construct element for some reason\n");
return -1;
}
+
+ gstobject_class = GST_OBJECT_CLASS (GTK_OBJECT (element)->klass);
gstelement_class = GST_ELEMENT_CLASS (GTK_OBJECT (element)->klass);
printf("Factory Details:\n");
@@ -184,9 +187,9 @@ gint print_element_info(GstElementFactory *factory) {
printf(" Has change_state() function\n");
else
printf(" No change_state() class function\n");
- if (gstelement_class->save_thyself)
+ if (gstobject_class->save_thyself)
printf(" Has custom save_thyself() class function\n");
- if (gstelement_class->restore_thyself)
+ if (gstobject_class->restore_thyself)
printf(" Has custom restore_thyself() class function\n");
printf("\n");