colorspace: Make fast-path transform table const
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 31 Oct 2010 18:42:30 +0000 (19:42 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 31 Oct 2010 18:42:30 +0000 (19:42 +0100)
gst/colorspace/colorspace.c

index 6472ee0..dd57ee5 100644 (file)
@@ -1170,7 +1170,7 @@ typedef struct
   GstVideoFormat to_format;
   void (*convert) (ColorspaceConvert * convert, guint8 * dest, guint8 * src);
 } ColorspaceTransform;
-static ColorspaceTransform transforms[] = {
+static const ColorspaceTransform transforms[] = {
   {GST_VIDEO_FORMAT_I420, GST_VIDEO_FORMAT_YUY2, convert_I420_YUY2},
   {GST_VIDEO_FORMAT_I420, GST_VIDEO_FORMAT_UYVY, convert_I420_UYVY},
   {GST_VIDEO_FORMAT_I420, GST_VIDEO_FORMAT_AYUV, convert_I420_AYUV},