From: Sebastian Dröge Date: Wed, 8 Jul 2009 16:19:45 +0000 (+0200) Subject: videomixer: Make checker pattern lookup table constant X-Git-Tag: 1.19.3~509^2~10126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=356972740a6c4abeadebfe6e60a5bf248429ffbd;p=platform%2Fupstream%2Fgstreamer.git videomixer: Make checker pattern lookup table constant --- diff --git a/gst/videomixer/blend_ayuv.c b/gst/videomixer/blend_ayuv.c index 072773a..7cbe154 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 a2e6c44..91fa792 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++) {