[MPlayer-cvslog] r30749 - in trunk/libmpcodecs: vf_delogo.c vf_format.c vf_hue.c vf_noformat.c

diego subversion at mplayerhq.hu
Fri Feb 26 18:21:06 CET 2010


Author: diego
Date: Fri Feb 26 18:21:06 2010
New Revision: 30749

Log:
Mark vf_opts/vf_opts_fields structures as const.

Modified:
   trunk/libmpcodecs/vf_delogo.c
   trunk/libmpcodecs/vf_format.c
   trunk/libmpcodecs/vf_hue.c
   trunk/libmpcodecs/vf_noformat.c

Modified: trunk/libmpcodecs/vf_delogo.c
==============================================================================
--- trunk/libmpcodecs/vf_delogo.c	Fri Feb 26 18:07:22 2010	(r30748)
+++ trunk/libmpcodecs/vf_delogo.c	Fri Feb 26 18:21:06 2010	(r30749)
@@ -233,7 +233,7 @@ static int vf_open(vf_instance_t *vf, ch
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
     { "x", ST_OFF(xoff), CONF_TYPE_INT, 0, 0, 0, NULL },
     { "y", ST_OFF(yoff), CONF_TYPE_INT, 0, 0, 0, NULL },
     { "w", ST_OFF(lw), CONF_TYPE_INT, 0, 0, 0, NULL },
@@ -243,7 +243,7 @@ static m_option_t vf_opts_fields[] = {
     { NULL, NULL, 0, 0, 0, 0, NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
     "delogo",
     sizeof(struct vf_priv_s),
     &vf_priv_dflt,

Modified: trunk/libmpcodecs/vf_format.c
==============================================================================
--- trunk/libmpcodecs/vf_format.c	Fri Feb 26 18:07:22 2010	(r30748)
+++ trunk/libmpcodecs/vf_format.c	Fri Feb 26 18:21:06 2010	(r30749)
@@ -53,12 +53,12 @@ static int vf_open(vf_instance_t *vf, ch
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
   {"fmt", ST_OFF(fmt), CONF_TYPE_IMGFMT, 0,0 ,0, NULL},
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
   "format",
   sizeof(struct vf_priv_s),
   &vf_priv_dflt,

Modified: trunk/libmpcodecs/vf_hue.c
==============================================================================
--- trunk/libmpcodecs/vf_hue.c	Fri Feb 26 18:07:22 2010	(r30748)
+++ trunk/libmpcodecs/vf_hue.c	Fri Feb 26 18:21:06 2010	(r30749)
@@ -177,13 +177,13 @@ static int vf_open(vf_instance_t *vf, ch
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
   {"hue", ST_OFF(hue), CONF_TYPE_FLOAT, M_OPT_RANGE,-180.0 ,180.0, NULL},
   {"saturation", ST_OFF(saturation), CONF_TYPE_FLOAT, M_OPT_RANGE,-10.0 ,10.0, NULL},
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
   "hue",
   sizeof(struct vf_priv_s),
   &vf_priv_dflt,

Modified: trunk/libmpcodecs/vf_noformat.c
==============================================================================
--- trunk/libmpcodecs/vf_noformat.c	Fri Feb 26 18:07:22 2010	(r30748)
+++ trunk/libmpcodecs/vf_noformat.c	Fri Feb 26 18:21:06 2010	(r30749)
@@ -53,12 +53,12 @@ static int vf_open(vf_instance_t *vf, ch
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
   {"fmt", ST_OFF(fmt), CONF_TYPE_IMGFMT, 0,0 ,0, NULL},
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
   "noformat",
   sizeof(struct vf_priv_s),
   &vf_priv_dflt,


More information about the MPlayer-cvslog mailing list