diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-01-21 09:55:30 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-01-21 09:55:53 +0100 |
commit | d5aab81a7762fbc60c1c285934ecedf976a8dacf (patch) | |
tree | da7c7eb405ae854ae5ef6eb2f9e65a666a56647c /ext | |
parent | d854cfff9d7602a8a13e950beff4b90660488d38 (diff) |
Constify some static arrays everywhere
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dv/gstsmptetimecode.c | 4 | ||||
-rw-r--r-- | ext/mikmod/mikmod_types.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ext/dv/gstsmptetimecode.c b/ext/dv/gstsmptetimecode.c index 8b15a6b63..b2204ea49 100644 --- a/ext/dv/gstsmptetimecode.c +++ b/ext/dv/gstsmptetimecode.c @@ -229,8 +229,8 @@ gst_smpte_time_code_get_timestamp (GstSMPTETimeCodeSystem system, g_return_val_if_fail (time_code != NULL, GST_CLOCK_TIME_NONE); if (gst_smpte_time_code_get_frame_number (system, &frame_number, time_code)) { - static int framerate_n[3] = { 3000, 25, 24 }; - static int framerate_d[3] = { 1001, 1, 1 }; + static const int framerate_n[3] = { 3000, 25, 24 }; + static const int framerate_d[3] = { 1001, 1, 1 }; return gst_util_uint64_scale (frame_number, GST_SECOND * framerate_d[system], framerate_n[system]); diff --git a/ext/mikmod/mikmod_types.c b/ext/mikmod/mikmod_types.c index 37ec9777e..b4bbc3659 100644 --- a/ext/mikmod/mikmod_types.c +++ b/ext/mikmod/mikmod_types.c @@ -113,7 +113,8 @@ gboolean Fam_CheckType (GstBuffer * buf) { gchar *data; - static unsigned char FARSIG[4 + 3] = { 'F', 'A', 'R', 0xfe, 13, 10, 26 }; + static const unsigned char FARSIG[4 + 3] = + { 'F', 'A', 'R', 0xfe, 13, 10, 26 }; data = GST_BUFFER_DATA (buf); |