From: Sebastian Dröge Date: Fri, 30 Sep 2016 11:54:24 +0000 (+0300) Subject: video-color: Mark some function arguments as const X-Git-Tag: 1.10.4~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7b75cb1ccf9fb5bfcd6ecef0251d39ef870c482;p=platform%2Fupstream%2Fgst-plugins-base.git video-color: Mark some function arguments as const https://bugzilla.gnome.org/show_bug.cgi?id=771376 --- diff --git a/gst-libs/gst/video/video-color.c b/gst-libs/gst/video/video-color.c index a68bced..08513c8 100644 --- a/gst-libs/gst/video/video-color.c +++ b/gst-libs/gst/video/video-color.c @@ -144,7 +144,7 @@ gst_video_colorimetry_from_string (GstVideoColorimetry * cinfo, * Returns: a string representation of @cinfo. */ gchar * -gst_video_colorimetry_to_string (GstVideoColorimetry * cinfo) +gst_video_colorimetry_to_string (const GstVideoColorimetry * cinfo) { gint i; @@ -172,7 +172,8 @@ gst_video_colorimetry_to_string (GstVideoColorimetry * cinfo) * information in @info. */ gboolean -gst_video_colorimetry_matches (GstVideoColorimetry * cinfo, const gchar * color) +gst_video_colorimetry_matches (const GstVideoColorimetry * cinfo, + const gchar * color) { const ColorimetryInfo *ci; diff --git a/gst-libs/gst/video/video-color.h b/gst-libs/gst/video/video-color.h index ecee0d3..6dafdea 100644 --- a/gst-libs/gst/video/video-color.h +++ b/gst-libs/gst/video/video-color.h @@ -193,10 +193,10 @@ typedef struct { #define GST_VIDEO_COLORIMETRY_SRGB "sRGB" #define GST_VIDEO_COLORIMETRY_BT2020 "bt2020" -gboolean gst_video_colorimetry_matches (GstVideoColorimetry *cinfo, const gchar *color); +gboolean gst_video_colorimetry_matches (const GstVideoColorimetry *cinfo, const gchar *color); gboolean gst_video_colorimetry_from_string (GstVideoColorimetry *cinfo, const gchar *color); -gchar * gst_video_colorimetry_to_string (GstVideoColorimetry *cinfo); -gboolean gst_video_colorimetry_is_equal (const GstVideoColorimetry *cinfo, const GstVideoColorimetry *other); +gchar * gst_video_colorimetry_to_string (const GstVideoColorimetry *cinfo); +gboolean gst_video_colorimetry_is_equal (const GstVideoColorimetry *cinfo, const GstVideoColorimetry *other); /* compute offset and scale */ void gst_video_color_range_offsets (GstVideoColorRange range,