From 356972740a6c4abeadebfe6e60a5bf248429ffbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 8 Jul 2009 18:19:45 +0200 Subject: [PATCH] videomixer: Make checker pattern lookup table constant --- gst/videomixer/blend_ayuv.c | 2 +- gst/videomixer/blend_i420.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videomixer/blend_ayuv.c b/gst/videomixer/blend_ayuv.c index 072773a76e..7cbe154611 100644 --- a/gst/videomixer/blend_ayuv.c +++ b/gst/videomixer/blend_ayuv.c @@ -237,7 +237,7 @@ void gst_videomixer_fill_ayuv_checker (guint8 * dest, gint width, gint height) { gint i, j; - static int tab[] = { 80, 160, 80, 160 }; + static const int tab[] = { 80, 160, 80, 160 }; for (i = 0; i < height; i++) { for (j = 0; j < width; j++) { diff --git a/gst/videomixer/blend_i420.c b/gst/videomixer/blend_i420.c index a2e6c44198..91fa792ff5 100644 --- a/gst/videomixer/blend_i420.c +++ b/gst/videomixer/blend_i420.c @@ -282,7 +282,7 @@ gst_videomixer_fill_i420_checker (guint8 * dest, gint width, gint height) { int size; gint i, j; - static int tab[] = { 80, 160, 80, 160 }; + static const int tab[] = { 80, 160, 80, 160 }; guint8 *p = dest; for (i = 0; i < height; i++) {