diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 4d7ad8d56b..2a06b6cfc2 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -44,6 +44,9 @@ extern gboolean __gst_props_parse_string (gchar *r, gchar **end, gchar **next) /* transform functions */ static void gst_caps_transform_to_string (const GValue *src_value, GValue *dest_value); +static void gst_caps_destroy (GstCaps *caps); + + static void gst_caps_transform_to_string (const GValue *src_value, GValue *dest_value) { @@ -308,7 +311,7 @@ gst_caps_replace_sink (GstCaps **oldcaps, GstCaps *newcaps) * Frees the memory used by this caps structure and all * the chained caps and properties. */ -void +static void gst_caps_destroy (GstCaps *caps) { GstCaps *next; diff --git a/gst/gstcaps.h b/gst/gstcaps.h index ab3883268b..c642b6f951 100644 --- a/gst/gstcaps.h +++ b/gst/gstcaps.h @@ -131,7 +131,6 @@ void gst_caps_replace_sink (GstCaps **oldcaps, GstCaps *newcaps); GstCaps* gst_caps_unref (GstCaps *caps); GstCaps* gst_caps_ref (GstCaps *caps); void gst_caps_sink (GstCaps *caps); -void gst_caps_destroy (GstCaps *caps); /* write debug lines to the log */ void gst_caps_debug (GstCaps *caps, const gchar *label); diff --git a/gst/gstprops.c b/gst/gstprops.c index d713c5cfb5..a983ddcca1 100644 --- a/gst/gstprops.c +++ b/gst/gstprops.c @@ -80,6 +80,8 @@ static GList* gst_props_list_copy (GList *propslist); static GstPropsEntry* gst_props_alloc_entry (void); +static void gst_props_destroy (GstProps *props); + static gchar * gst_props_entry_to_string (GstPropsEntry *entry) { @@ -1342,7 +1344,7 @@ gst_props_sink (GstProps *props) * Destroy the property, freeing all the memory that * was allocated. */ -void +static void gst_props_destroy (GstProps *props) { if (props == NULL) diff --git a/gst/gstprops.h b/gst/gstprops.h index 1f3282c210..3b39a70273 100644 --- a/gst/gstprops.h +++ b/gst/gstprops.h @@ -135,7 +135,6 @@ void gst_props_replace_sink (GstProps **oldprops, Gs GstProps* gst_props_unref (GstProps *props); GstProps* gst_props_ref (GstProps *props); void gst_props_sink (GstProps *props); -void gst_props_destroy (GstProps *props); /* dump property debug info to the log */ void gst_props_debug (GstProps *props);