diff --git a/gst/gsttypefindfactory.c b/gst/gsttypefindfactory.c index 1707768e8e..c8f9d6006b 100644 --- a/gst/gsttypefindfactory.c +++ b/gst/gsttypefindfactory.c @@ -186,12 +186,12 @@ gst_type_find_factory_get_caps (GstTypeFindFactory * factory) * Returns: (transfer none) (array zero-terminated=1) (element-type utf8): a * NULL-terminated array of extensions associated with this factory */ -gchar ** +const gchar *const * gst_type_find_factory_get_extensions (GstTypeFindFactory * factory) { g_return_val_if_fail (GST_IS_TYPE_FIND_FACTORY (factory), NULL); - return factory->extensions; + return (const gchar * const *) factory->extensions; } /** diff --git a/gst/gsttypefindfactory.h b/gst/gsttypefindfactory.h index 3797f29c98..2838ddba1f 100644 --- a/gst/gsttypefindfactory.h +++ b/gst/gsttypefindfactory.h @@ -71,7 +71,8 @@ GType gst_type_find_factory_get_type (void); GList * gst_type_find_factory_get_list (void); -gchar ** gst_type_find_factory_get_extensions (GstTypeFindFactory *factory); +const gchar * const * gst_type_find_factory_get_extensions (GstTypeFindFactory *factory); + GstCaps * gst_type_find_factory_get_caps (GstTypeFindFactory *factory); gboolean gst_type_find_factory_has_function (GstTypeFindFactory *factory); void gst_type_find_factory_call_function (GstTypeFindFactory *factory,