xvimageallocator: const correctness in gst_xvimage_allocator_alloc().
authorDuncan Palmer <dpalmer@digisoft.tv>
Mon, 18 Jul 2016 09:59:23 +0000 (19:59 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Jul 2016 13:17:09 +0000 (14:17 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=767712

sys/xvimage/xvimageallocator.c
sys/xvimage/xvimageallocator.h

index c5be6db..47c7da0 100644 (file)
@@ -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;
index b47539d..f9b7ee3 100644 (file)
@@ -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 */