From 25323994231ef003cb227da35e46c974986cbc0b Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 12 Aug 2002 16:40:50 +0000 Subject: [PATCH] fixes bug http://bugzilla.gnome.org/show_bug.cgi?id=90332 Original commit message from CVS: fixes bug http://bugzilla.gnome.org/show_bug.cgi?id=90332 --- common | 2 +- gst/gstelement.c | 7 ++++--- gst/gstelement.h | 2 +- gst/gstpad.c | 2 +- gst/gstpad.h | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/common b/common index 49b94b4d92..e400d0fc27 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 49b94b4d92a9621d42aa6c80bd720e2abc747fe4 +Subproject commit e400d0fc2780dac2ee516286893d4f312d065f86 diff --git a/gst/gstelement.c b/gst/gstelement.c index e16da5a6d0..cb88d40dac 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -995,7 +995,7 @@ gst_element_remove_pad (GstElement *element, GstPad *pad) * Returns: the added ghost pad or NULL, if no ghost pad was created. */ GstPad * -gst_element_add_ghost_pad (GstElement *element, GstPad *pad, gchar *name) +gst_element_add_ghost_pad (GstElement *element, GstPad *pad, const gchar *name) { GstPad *ghostpad; @@ -1007,8 +1007,9 @@ gst_element_add_ghost_pad (GstElement *element, GstPad *pad, gchar *name) /* then check to see if there's already a pad by that name here */ g_return_val_if_fail (gst_object_check_uniqueness (element->pads, name) == TRUE, NULL); - GST_DEBUG(GST_CAT_ELEMENT_PADS,"creating new ghost pad called %s, from pad %s:%s", - name,GST_DEBUG_PAD_NAME(pad)); + GST_DEBUG (GST_CAT_ELEMENT_PADS, + "creating new ghost pad called %s, from pad %s:%s", + name, GST_DEBUG_PAD_NAME(pad)); ghostpad = gst_ghost_pad_new (name, pad); /* add it to the list */ diff --git a/gst/gstelement.h b/gst/gstelement.h index af24eb2312..a5b7674f59 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -228,7 +228,7 @@ GstScheduler* gst_element_get_scheduler (GstElement *element); void gst_element_add_pad (GstElement *element, GstPad *pad); void gst_element_remove_pad (GstElement *element, GstPad *pad); -GstPad * gst_element_add_ghost_pad (GstElement *element, GstPad *pad, gchar *name); +GstPad * gst_element_add_ghost_pad (GstElement *element, GstPad *pad, const gchar *name); void gst_element_remove_ghost_pad (GstElement *element, GstPad *pad); GstPad* gst_element_get_pad (GstElement *element, const gchar *name); diff --git a/gst/gstpad.c b/gst/gstpad.c index c97efb4fc8..f61b671fa4 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2400,7 +2400,7 @@ gst_ghost_pad_init (GstGhostPad *pad) * Returns: new ghost pad */ GstPad* -gst_ghost_pad_new (gchar *name, +gst_ghost_pad_new (const gchar *name, GstPad *pad) { GstGhostPad *ghostpad; diff --git a/gst/gstpad.h b/gst/gstpad.h index b37a5b2687..fdc2b5745f 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -489,7 +489,7 @@ void gst_pad_load_and_connect (xmlNodePtr self, GstObject *parent); /* ghostpads */ -GstPad* gst_ghost_pad_new (gchar *name,GstPad *pad); +GstPad* gst_ghost_pad_new (const gchar *name, GstPad *pad); /* templates and factories */