summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Palmer <dpalmer@digisoft.tv>2016-07-18 19:59:23 +1000
committerSebastian Dröge <sebastian@centricular.com>2016-07-25 13:25:09 +0300
commite8ae7e52284b2426ecee440e3d8eaa222e4062b6 (patch)
tree3d71671c4a7bc3199b5ad44ef188e7b34fb43d64
parentda25c560a1dc05c2a2a519281f151cefa078bb40 (diff)
downloadgstreamer-plugins-base-e8ae7e52284b2426ecee440e3d8eaa222e4062b6.tar.gz
xvimageallocator: const correctness in gst_xvimage_allocator_alloc().
https://bugzilla.gnome.org/show_bug.cgi?id=767712
-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 9c75489b5..3a2728c23 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 */