mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
9ceb77058b
commit
f33b1397d3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
* Returns: (transfer none) (array length=size): a pointer to the first
|
||||||
* @size bytes of data, or NULL
|
* @size bytes of data, or NULL
|
||||||
*/
|
*/
|
||||||
const gpointer
|
gconstpointer
|
||||||
gst_adapter_map (GstAdapter * adapter, gsize size)
|
gst_adapter_map (GstAdapter * adapter, gsize size)
|
||||||
{
|
{
|
||||||
GstBuffer *cur;
|
GstBuffer *cur;
|
||||||
|
|
|
@ -79,7 +79,7 @@ GstAdapter * gst_adapter_new (void);
|
||||||
|
|
||||||
void gst_adapter_clear (GstAdapter *adapter);
|
void gst_adapter_clear (GstAdapter *adapter);
|
||||||
void gst_adapter_push (GstAdapter *adapter, GstBuffer* buf);
|
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_unmap (GstAdapter *adapter);
|
||||||
void gst_adapter_copy (GstAdapter *adapter, gpointer dest,
|
void gst_adapter_copy (GstAdapter *adapter, gpointer dest,
|
||||||
gsize offset, gsize size);
|
gsize offset, gsize size);
|
||||||
|
|
Loading…
Reference in a new issue