adapter: fix return type of _map() to gconstpointer

Fixes compiler warnings on OSX:
gstadapter.h:82: warning: type qualifiers ignored on function return type
gstadapter.c:412: warning: type qualifiers ignored on function return type

const gpointer is not the same as gconstpointer or const void *.

https://bugzilla.gnome.org/show_bug.cgi?id=664491
This commit is contained in:
Matej Knopp 2011-11-21 18:56:19 +01:00 committed by Tim-Philipp Müller
parent 9ceb77058b
commit f33b1397d3
2 changed files with 2 additions and 2 deletions

View file

@ -407,7 +407,7 @@ gst_adapter_try_to_merge_up (GstAdapter * adapter, gsize size)
* Returns: (transfer none) (array length=size): a pointer to the first
* @size bytes of data, or NULL
*/
const gpointer
gconstpointer
gst_adapter_map (GstAdapter * adapter, gsize size)
{
GstBuffer *cur;

View file

@ -79,7 +79,7 @@ GstAdapter * gst_adapter_new (void);
void gst_adapter_clear (GstAdapter *adapter);
void gst_adapter_push (GstAdapter *adapter, GstBuffer* buf);
const gpointer gst_adapter_map (GstAdapter *adapter, gsize size);
gconstpointer gst_adapter_map (GstAdapter *adapter, gsize size);
void gst_adapter_unmap (GstAdapter *adapter);
void gst_adapter_copy (GstAdapter *adapter, gpointer dest,
gsize offset, gsize size);