From: Wim Taymans Date: Tue, 20 Dec 2011 12:13:04 +0000 (+0100) Subject: remove const in gst_type_find_register() X-Git-Tag: RELEASE-0.11.2~299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04e09120940bb854a76dd4966d466c0f67c7622b;p=platform%2Fupstream%2Fgstreamer.git remove const in gst_type_find_register() Remove the const from the GstCaps in gst_type_find_register() because the function takes a ref to the caps. --- diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c index 1f0b16d..9474c4c 100644 --- a/gst/gsttypefind.c +++ b/gst/gsttypefind.c @@ -74,7 +74,7 @@ gst_type_find_get_type (void) gboolean gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank, GstTypeFindFunction func, gchar ** extensions, - const GstCaps * possible_caps, gpointer data, GDestroyNotify data_notify) + GstCaps * possible_caps, gpointer data, GDestroyNotify data_notify) { GstTypeFindFactory *factory; @@ -93,7 +93,7 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank, g_strfreev (factory->extensions); factory->extensions = g_strdupv (extensions); - gst_caps_replace (&factory->caps, (GstCaps *) possible_caps); + gst_caps_replace (&factory->caps, possible_caps); factory->function = func; factory->user_data = data; factory->user_data_notify = data_notify; diff --git a/gst/gsttypefind.h b/gst/gsttypefind.h index 27c7e32..4dcdc85 100644 --- a/gst/gsttypefind.h +++ b/gst/gsttypefind.h @@ -115,7 +115,7 @@ gboolean gst_type_find_register (GstPlugin * plugin, guint rank, GstTypeFindFunction func, gchar ** extensions, - const GstCaps * possible_caps, + GstCaps * possible_caps, gpointer data, GDestroyNotify data_notify);