From 11cb7a31b422607c1e68aef34aa4d4b3f421079b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 10 May 2006 10:29:54 +0000 Subject: [PATCH] Const-ify GEnumValue arrays. Original commit message from CVS: * ext/esd/esdmon.c: (gst_esdmon_depths_get_type), (gst_esdmon_channels_get_type): * ext/gconf/gstgconfaudiosink.c: (gst_gconf_profile_get_type): * ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_method_get_type): * ext/libcaca/gstcacasink.c: (gst_cacasink_dither_get_type): * ext/shout2/gstshout2.c: (gst_shout2send_protocol_get_type): * gst/alpha/gstalpha.c: (gst_alpha_method_get_type): * gst/rtp/gstrtpilbcdepay.c: (gst_ilbc_mode_get_type): * gst/rtsp/gstrtspsrc.c: (gst_rtsp_proto_get_type): * gst/videobox/gstvideobox.c: (gst_video_box_fill_get_type): * gst/videofilter/gstvideoflip.c: (gst_video_flip_method_get_type): * gst/videomixer/videomixer.c: (gst_video_mixer_background_get_type): Const-ify GEnumValue arrays. --- ChangeLog | 17 +++++++++++++++++ ext/esd/esdmon.c | 4 ++-- ext/gconf/gstgconfaudiosink.c | 2 +- ext/gdk_pixbuf/pixbufscale.c | 2 +- ext/libcaca/gstcacasink.c | 2 +- ext/shout2/gstshout2.c | 2 +- gst/alpha/gstalpha.c | 2 +- gst/rtp/gstrtpilbcdepay.c | 2 +- gst/rtsp/gstrtspsrc.c | 2 +- gst/videobox/gstvideobox.c | 2 +- gst/videofilter/gstvideoflip.c | 2 +- gst/videomixer/videomixer.c | 2 +- 12 files changed, 29 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4115f2b..59efa38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,22 @@ 2006-05-09 Tim-Philipp Müller + * ext/esd/esdmon.c: (gst_esdmon_depths_get_type), + (gst_esdmon_channels_get_type): + * ext/gconf/gstgconfaudiosink.c: (gst_gconf_profile_get_type): + * ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_method_get_type): + * ext/libcaca/gstcacasink.c: (gst_cacasink_dither_get_type): + * ext/shout2/gstshout2.c: (gst_shout2send_protocol_get_type): + * gst/alpha/gstalpha.c: (gst_alpha_method_get_type): + * gst/rtp/gstrtpilbcdepay.c: (gst_ilbc_mode_get_type): + * gst/rtsp/gstrtspsrc.c: (gst_rtsp_proto_get_type): + * gst/videobox/gstvideobox.c: (gst_video_box_fill_get_type): + * gst/videofilter/gstvideoflip.c: (gst_video_flip_method_get_type): + * gst/videomixer/videomixer.c: + (gst_video_mixer_background_get_type): + Const-ify GEnumValue arrays. + +2006-05-09 Tim-Philipp Müller + Patch by: Mark Nauwelaerts * gst/avi/gstavimux.c: (gst_avi_mux_do_audio_buffer), diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c index df1b59e..6a97e23 100644 --- a/ext/esd/esdmon.c +++ b/ext/esd/esdmon.c @@ -91,7 +91,7 @@ static GType gst_esdmon_depths_get_type (void) { static GType esdmon_depths_type = 0; - static GEnumValue esdmon_depths[] = { + static const GEnumValue esdmon_depths[] = { {8, "8 Bits", "8"}, {16, "16 Bits", "16"}, {0, NULL, NULL}, @@ -109,7 +109,7 @@ static GType gst_esdmon_channels_get_type (void) { static GType esdmon_channels_type = 0; - static GEnumValue esdmon_channels[] = { + static const GEnumValue esdmon_channels[] = { {1, "Mono", "mono"}, {2, "Stereo", "stereo"}, {0, NULL, NULL}, diff --git a/ext/gconf/gstgconfaudiosink.c b/ext/gconf/gstgconfaudiosink.c index 8cd81c1..77297af 100644 --- a/ext/gconf/gstgconfaudiosink.c +++ b/ext/gconf/gstgconfaudiosink.c @@ -71,7 +71,7 @@ static GType gst_gconf_profile_get_type (void) { static GType gconf_profile_type = 0; - static GEnumValue gconf_profiles[] = { + static const GEnumValue gconf_profiles[] = { {GCONF_PROFILE_SOUNDS, "Sound Events", "sounds"}, {GCONF_PROFILE_MUSIC, "Music and Movies", "music"}, {GCONF_PROFILE_CHAT, "Audio/Video Conferencing", "chat"}, diff --git a/ext/gdk_pixbuf/pixbufscale.c b/ext/gdk_pixbuf/pixbufscale.c index 3e011b8..df5ba53 100644 --- a/ext/gdk_pixbuf/pixbufscale.c +++ b/ext/gdk_pixbuf/pixbufscale.c @@ -81,7 +81,7 @@ static GType gst_pixbufscale_method_get_type (void) { static GType pixbufscale_method_type = 0; - static GEnumValue pixbufscale_methods[] = { + static const GEnumValue pixbufscale_methods[] = { {GST_PIXBUFSCALE_NEAREST, "0", "Nearest Neighbour"}, {GST_PIXBUFSCALE_TILES, "1", "Tiles"}, {GST_PIXBUFSCALE_BILINEAR, "2", "Bilinear"}, diff --git a/ext/libcaca/gstcacasink.c b/ext/libcaca/gstcacasink.c index 9786edb..1b4700d 100644 --- a/ext/libcaca/gstcacasink.c +++ b/ext/libcaca/gstcacasink.c @@ -107,7 +107,7 @@ gst_cacasink_dither_get_type (void) { static GType dither_type = 0; - static GEnumValue dither_types[] = { + static const GEnumValue dither_types[] = { {CACA_DITHERING_NONE, "No dithering", "none"}, {CACA_DITHERING_ORDERED2, "Ordered 2x2 Bayer dithering", "2x2"}, {CACA_DITHERING_ORDERED4, "Ordered 4x4 Bayer dithering", "4x4"}, diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 4fc4200..a4e1b6f 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -105,7 +105,7 @@ static GType gst_shout2send_protocol_get_type (void) { static GType shout2send_protocol_type = 0; - static GEnumValue shout2send_protocol[] = { + static const GEnumValue shout2send_protocol[] = { {SHOUT2SEND_PROTOCOL_XAUDIOCAST, "Xaudiocast Protocol (icecast 1.3.x)", "xaudiocast"}, {SHOUT2SEND_PROTOCOL_ICY, "Icy Protocol (ShoutCast)", "icy"}, diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c index 966cc55..95be384 100644 --- a/gst/alpha/gstalpha.c +++ b/gst/alpha/gstalpha.c @@ -174,7 +174,7 @@ static GType gst_alpha_method_get_type (void) { static GType alpha_method_type = 0; - static GEnumValue alpha_method[] = { + static const GEnumValue alpha_method[] = { {ALPHA_METHOD_SET, "Set/adjust alpha channel", "set"}, {ALPHA_METHOD_GREEN, "Chroma Key green", "green"}, {ALPHA_METHOD_BLUE, "Chroma Key blue", "blue"}, diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c index 1d3448d..6264a21 100644 --- a/gst/rtp/gstrtpilbcdepay.c +++ b/gst/rtp/gstrtpilbcdepay.c @@ -80,7 +80,7 @@ static GType gst_ilbc_mode_get_type (void) { static GType ilbc_mode_type = 0; - static GEnumValue ilbc_modes[] = { + static const GEnumValue ilbc_modes[] = { {GST_ILBC_MODE_20, "20ms frames", "20ms"}, {GST_ILBC_MODE_30, "30ms frames", "30ms"}, {0, NULL, NULL}, diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index a05849b..4554dc0 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -75,7 +75,7 @@ static GType gst_rtsp_proto_get_type (void) { static GType rtsp_proto_type = 0; - static GFlagsValue rtsp_proto[] = { + static const GFlagsValue rtsp_proto[] = { {GST_RTSP_PROTO_UDP_UNICAST, "UDP Unicast", "UDP unicast mode"}, {GST_RTSP_PROTO_UDP_MULTICAST, "UDP Multicast", "UDP Multicast mode"}, {GST_RTSP_PROTO_TCP, "TCP", "TCP interleaved mode"}, diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index efe1176..602d474 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -144,7 +144,7 @@ static GType gst_video_box_fill_get_type (void) { static GType video_box_fill_type = 0; - static GEnumValue video_box_fill[] = { + static const GEnumValue video_box_fill[] = { {VIDEO_BOX_FILL_BLACK, "Black", "black"}, {VIDEO_BOX_FILL_GREEN, "Colorkey green", "green"}, {VIDEO_BOX_FILL_BLUE, "Colorkey blue", "blue"}, diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c index c915fab..f9312e6 100644 --- a/gst/videofilter/gstvideoflip.c +++ b/gst/videofilter/gstvideoflip.c @@ -91,7 +91,7 @@ static GType gst_video_flip_method_get_type (void) { static GType video_flip_method_type = 0; - static GEnumValue video_flip_methods[] = { + static const GEnumValue video_flip_methods[] = { {GST_VIDEO_FLIP_METHOD_IDENTITY, "Identity (no rotation)", "none"}, {GST_VIDEO_FLIP_METHOD_90R, "Rotate clockwise 90 degrees", "clockwise"}, {GST_VIDEO_FLIP_METHOD_180, "Rotate 180 degrees", "rotate-180"}, diff --git a/gst/videomixer/videomixer.c b/gst/videomixer/videomixer.c index 4b5b763..a5b5a7b 100644 --- a/gst/videomixer/videomixer.c +++ b/gst/videomixer/videomixer.c @@ -423,7 +423,7 @@ static GType gst_video_mixer_background_get_type (void) { static GType video_mixer_background_type = 0; - static GEnumValue video_mixer_background[] = { + static const GEnumValue video_mixer_background[] = { {VIDEO_MIXER_BACKGROUND_CHECKER, "Checker pattern", "checker"}, {VIDEO_MIXER_BACKGROUND_BLACK, "Black", "black"}, {VIDEO_MIXER_BACKGROUND_WHITE, "White", "white"}, -- 2.7.4