summaryrefslogtreecommitdiff
path: root/gst/gstbufferlist.h
diff options
context:
space:
mode:
authorJeffrey S. Smith <whydoubt@yahoo.com>2010-09-02 00:01:25 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-02 00:09:08 +0100
commit4375e998eed1571638e66a9eaff2110c2306a2b9 (patch)
tree5174d98dbbcad932f2003b0fa7429f643a95e3bf /gst/gstbufferlist.h
parentf9204d5d70d126557cce0175e8ce9ce382d7fbc5 (diff)
Fix casts in a bunch of inline functions to maintain correct const-ness
Make code including GStreamer headers compile with -Wcast-qual by maintaining const-ness when casting. Also fix function signature of gst_byte_writer_set_pos(): the byte writer should not be marked as const. https://bugzilla.gnome.org/show_bug.cgi?id=627910
Diffstat (limited to 'gst/gstbufferlist.h')
-rw-r--r--gst/gstbufferlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstbufferlist.h b/gst/gstbufferlist.h
index c75a07b3ea..635817e017 100644
--- a/gst/gstbufferlist.h
+++ b/gst/gstbufferlist.h
@@ -179,7 +179,7 @@ G_INLINE_FUNC GstBufferList * gst_buffer_list_copy (const GstBufferList * list);
static inline GstBufferList *
gst_buffer_list_copy (const GstBufferList * list)
{
- return GST_BUFFER_LIST_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (list)));
+ return GST_BUFFER_LIST_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (list)));
}
/**