[vlc-devel] commit: Constify ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 6 19:19:41 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb  6 20:09:24 2010 +0200| [c68071dfcc2e41584fad994b419b5532c4f4de87] | committer: Rémi Denis-Courmont 

Constify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c68071dfcc2e41584fad994b419b5532c4f4de87
---

 src/control/video.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index a91a384..0418590 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -719,7 +719,7 @@ get_string( libvlc_media_player_t *p_mi, const char *name,
 static const opt_t *
 marq_option_bynumber(unsigned option, libvlc_exception_t *p_e)
 {
-    opt_t optlist[] =
+    static const opt_t optlist[] =
     {
         { "marq",          0 },
         { "marq-marquee",  VLC_VAR_STRING },
@@ -789,7 +789,8 @@ void libvlc_video_set_marquee_string( libvlc_media_player_t *p_mi,
 static opt_t *
 logo_option_bynumber( unsigned option, libvlc_exception_t *p_e )
 {
-    opt_t vlogo_optlist[] = /* depends on libvlc_video_logo_option_t */
+    static const opt_t vlogo_optlist[] =
+    /* depends on libvlc_video_logo_option_t */
     {
         { "logo",          0 },
         { "logo-file",     VLC_VAR_STRING },




More information about the vlc-devel mailing list