[gst-devel] compile problem gstpad.c 804 structure has no member named childs

Chris Emerson chris at tartarus.org
Thu Feb 15 17:13:42 CET 2001


On Thu, Feb 15, 2001 at 04:33:14PM +0100, Alexander Werth wrote:
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -D_REENTRANT
> -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/libxml
> -I/usr/include -O6 -Wall -Wp,-MD,.deps/gstpad.pp -c gstpad.c  -fPIC
> -DPIC -o gstpad.lo
> gstpad.c: In function `gst_pad_load_and_connect':
> gstpad.c:804: structure has no member named `childs'
> gstpad.c: In function `gst_padtemplate_load_thyself':
> gstpad.c:1089: structure has no member named `childs'

This is a libxml compatibility issue.  The fix is to change "childs" to
xmlChildrenNode.  A small patch is attached.

Cheers,

Chris
-------------- next part --------------
Index: gstpad.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstpad.c,v
retrieving revision 1.68
diff -u -r1.68 gstpad.c
--- gstpad.c	2001/02/05 17:16:23	1.68
+++ gstpad.c	2001/02/15 16:13:04
@@ -801,7 +801,7 @@
 gst_pad_load_and_connect (xmlNodePtr self,
 		          GstObject *parent)
 {
-  xmlNodePtr field = self->childs;
+  xmlNodePtr field = self->xmlChildrenNode;
   GstPad *pad = NULL, *targetpad;
   guchar *peer = NULL;
   gchar **split;
@@ -1086,7 +1086,7 @@
 GstPadTemplate*
 gst_padtemplate_load_thyself (xmlNodePtr parent)
 {
-  xmlNodePtr field = parent->childs;
+  xmlNodePtr field = parent->xmlChildrenNode;
   GstPadTemplate *factory = g_new0 (GstPadTemplate, 1);
 
   while (field) {


More information about the gstreamer-devel mailing list