[gst-cvs] gst-plugins-bad: colorspace: Make fast-path transform table const
Sebastian Dröge
slomo at kemper.freedesktop.org
Sun Oct 31 11:42:56 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: 58949450b5041cb4d9a539f504fa2145a84b93e8
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=58949450b5041cb4d9a539f504fa2145a84b93e8
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Sun Oct 31 19:42:30 2010 +0100
colorspace: Make fast-path transform table const
---
gst/colorspace/colorspace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gst/colorspace/colorspace.c b/gst/colorspace/colorspace.c
index 6472ee0..dd57ee5 100644
--- a/gst/colorspace/colorspace.c
+++ b/gst/colorspace/colorspace.c
@@ -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},
More information about the Gstreamer-commits
mailing list