summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-01-21 09:56:41 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-01-21 09:56:41 +0100
commit2c5ba12f2823c9a03e68cba8cf825241595e5fa3 (patch)
tree22fecd5af13d1c88cb034824058896979b0aab2e /ext
parentb130321dd02a839eaa05c04e62850ab15ab9391b (diff)
Constify some static arrays everywhere
Diffstat (limited to 'ext')
-rw-r--r--ext/lame/gstlamemp3enc.c4
-rw-r--r--ext/twolame/gsttwolamemp2enc.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c
index ee528beb..8fcd00ac 100644
--- a/ext/lame/gstlamemp3enc.c
+++ b/ext/lame/gstlamemp3enc.c
@@ -119,7 +119,7 @@ static GType
gst_lamemp3enc_target_get_type (void)
{
static GType lame_target_type = 0;
- static GEnumValue lame_targets[] = {
+ static const GEnumValue lame_targets[] = {
{LAMEMP3ENC_TARGET_QUALITY, "Quality", "quality"},
{LAMEMP3ENC_TARGET_BITRATE, "Bitrate", "bitrate"},
{0, NULL, NULL}
@@ -144,7 +144,7 @@ static GType
gst_lamemp3enc_encoding_engine_quality_get_type (void)
{
static GType lame_encoding_engine_quality_type = 0;
- static GEnumValue lame_encoding_engine_quality[] = {
+ static const GEnumValue lame_encoding_engine_quality[] = {
{0, "Fast", "fast"},
{1, "Standard", "standard"},
{2, "High", "high"},
diff --git a/ext/twolame/gsttwolamemp2enc.c b/ext/twolame/gsttwolamemp2enc.c
index 12b6f5ab..63f1fd33 100644
--- a/ext/twolame/gsttwolamemp2enc.c
+++ b/ext/twolame/gsttwolamemp2enc.c
@@ -113,7 +113,7 @@ static GType
gst_two_lame_mode_get_type (void)
{
static GType two_lame_mode_type = 0;
- static GEnumValue two_lame_modes[] = {
+ static const GEnumValue two_lame_modes[] = {
{TWOLAME_AUTO_MODE, "Auto", "auto"},
{TWOLAME_STEREO, "Stereo", "stereo"},
{TWOLAME_JOINT_STEREO, "Joint Stereo", "joint"},
@@ -134,7 +134,7 @@ static GType
gst_two_lame_padding_get_type (void)
{
static GType two_lame_padding_type = 0;
- static GEnumValue two_lame_padding[] = {
+ static const GEnumValue two_lame_padding[] = {
{TWOLAME_PAD_NO, "No Padding", "never"},
{TWOLAME_PAD_ALL, "Always Pad", "always"},
{0, NULL, NULL}
@@ -152,7 +152,7 @@ static GType
gst_two_lame_emphasis_get_type (void)
{
static GType two_lame_emphasis_type = 0;
- static GEnumValue two_lame_emphasis[] = {
+ static const GEnumValue two_lame_emphasis[] = {
{TWOLAME_EMPHASIS_N, "No emphasis", "none"},
{TWOLAME_EMPHASIS_5, "50/15 ms", "5"},
{TWOLAME_EMPHASIS_C, "CCIT J.17", "ccit"},