typefindfactory: fix return type of gst_type_find_factory_get_extensions()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 1 May 2012 21:30:32 +0000 (22:30 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 1 May 2012 22:23:41 +0000 (23:23 +0100)
gst/gsttypefindfactory.c
gst/gsttypefindfactory.h

index 1707768..c8f9d60 100644 (file)
@@ -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;
 }
 
 /**
index 3797f29..2838ddb 100644 (file)
@@ -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,