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 c5be6db1d2d0c6755b38b8eea811f3fb6f6497f5..47c7da0073c9be29d18ea9fdf9e983fa922d3d3c 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 b47539dff50e8da500274e7552ffe27ba1a67beb..f9b7ee396a75b70b118044cafaac5f278ea2288c 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 */