mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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.
This commit is contained in:
parent
be89c6ffa3
commit
04e0912094
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ gst_type_find_get_type (void)
|
||||||
gboolean
|
gboolean
|
||||||
gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
|
gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
|
||||||
GstTypeFindFunction func, gchar ** extensions,
|
GstTypeFindFunction func, gchar ** extensions,
|
||||||
const GstCaps * possible_caps, gpointer data, GDestroyNotify data_notify)
|
GstCaps * possible_caps, gpointer data, GDestroyNotify data_notify)
|
||||||
{
|
{
|
||||||
GstTypeFindFactory *factory;
|
GstTypeFindFactory *factory;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
|
||||||
g_strfreev (factory->extensions);
|
g_strfreev (factory->extensions);
|
||||||
factory->extensions = g_strdupv (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->function = func;
|
||||||
factory->user_data = data;
|
factory->user_data = data;
|
||||||
factory->user_data_notify = data_notify;
|
factory->user_data_notify = data_notify;
|
||||||
|
|
|
@ -115,7 +115,7 @@ gboolean gst_type_find_register (GstPlugin * plugin,
|
||||||
guint rank,
|
guint rank,
|
||||||
GstTypeFindFunction func,
|
GstTypeFindFunction func,
|
||||||
gchar ** extensions,
|
gchar ** extensions,
|
||||||
const GstCaps * possible_caps,
|
GstCaps * possible_caps,
|
||||||
gpointer data,
|
gpointer data,
|
||||||
GDestroyNotify data_notify);
|
GDestroyNotify data_notify);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue