summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDuncan Palmer <dpalmer@digisoft.tv>2016-07-18 19:59:23 +1000
committerTim-Philipp Müller <tim@centricular.com>2016-07-18 14:17:09 +0100
commitf00bbd2ea543e55c2b38ed80e8493e3119c9eb58 (patch)
tree6c5c94dcb6745be4ad0fcf57dd36aff10cb16dcc /sys
parent4e83e894dfd2bf0e52e826dd42a93f0bed61ab4f (diff)
downloadgstreamer-plugins-base-f00bbd2ea543e55c2b38ed80e8493e3119c9eb58.tar.gz
xvimageallocator: const correctness in gst_xvimage_allocator_alloc().
https://bugzilla.gnome.org/show_bug.cgi?id=767712
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimageallocator.c2
-rw-r--r--sys/xvimage/xvimageallocator.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c
index c5be6db1d..47c7da007 100644
--- a/sys/xvimage/xvimageallocator.c
+++ b/sys/xvimage/xvimageallocator.c
@@ -343,7 +343,7 @@ gst_xvimage_allocator_peek_context (GstXvImageAllocator * allocator)
GstMemory *
gst_xvimage_allocator_alloc (GstXvImageAllocator * allocator, gint im_format,
const GstVideoInfo * info, gint padded_width, gint padded_height,
- GstVideoRectangle * crop, GError ** error)
+ const GstVideoRectangle * crop, GError ** error)
{
int (*handler) (Display *, XErrorEvent *);
gboolean success = FALSE;
diff --git a/sys/xvimage/xvimageallocator.h b/sys/xvimage/xvimageallocator.h
index b47539dff..f9b7ee396 100644
--- a/sys/xvimage/xvimageallocator.h
+++ b/sys/xvimage/xvimageallocator.h
@@ -47,7 +47,7 @@ GstMemory * gst_xvimage_allocator_alloc (GstXvImageAllocator * a
const GstVideoInfo * info,
gint padded_width,
gint padded_height,
- GstVideoRectangle *crop,
+ const GstVideoRectangle *crop,
GError ** error);
/* memory from the allocator */