From f00bbd2ea543e55c2b38ed80e8493e3119c9eb58 Mon Sep 17 00:00:00 2001 From: Duncan Palmer Date: Mon, 18 Jul 2016 19:59:23 +1000 Subject: [PATCH] xvimageallocator: const correctness in gst_xvimage_allocator_alloc(). https://bugzilla.gnome.org/show_bug.cgi?id=767712 --- sys/xvimage/xvimageallocator.c | 2 +- sys/xvimage/xvimageallocator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c index c5be6db1d2..47c7da0073 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 b47539dff5..f9b7ee396a 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 */