typefindfactory: fix return type of gst_type_find_factory_get_extensions()

This commit is contained in:
Tim-Philipp Müller 2012-05-01 22:30:32 +01:00
parent e73747a7e0
commit 509905035d
2 changed files with 4 additions and 3 deletions

View file

@ -186,12 +186,12 @@ gst_type_find_factory_get_caps (GstTypeFindFactory * factory)
* Returns: (transfer none) (array zero-terminated=1) (element-type utf8): a * Returns: (transfer none) (array zero-terminated=1) (element-type utf8): a
* NULL-terminated array of extensions associated with this factory * NULL-terminated array of extensions associated with this factory
*/ */
gchar ** const gchar *const *
gst_type_find_factory_get_extensions (GstTypeFindFactory * factory) gst_type_find_factory_get_extensions (GstTypeFindFactory * factory)
{ {
g_return_val_if_fail (GST_IS_TYPE_FIND_FACTORY (factory), NULL); g_return_val_if_fail (GST_IS_TYPE_FIND_FACTORY (factory), NULL);
return factory->extensions; return (const gchar * const *) factory->extensions;
} }
/** /**

View file

@ -71,7 +71,8 @@ GType gst_type_find_factory_get_type (void);
GList * gst_type_find_factory_get_list (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); GstCaps * gst_type_find_factory_get_caps (GstTypeFindFactory *factory);
gboolean gst_type_find_factory_has_function (GstTypeFindFactory *factory); gboolean gst_type_find_factory_has_function (GstTypeFindFactory *factory);
void gst_type_find_factory_call_function (GstTypeFindFactory *factory, void gst_type_find_factory_call_function (GstTypeFindFactory *factory,