[MPlayer-cvslog] r22045 - in trunk: libmpcodecs/vf_ass.c libmpcodecs/vf_crop.c libmpcodecs/vf_delogo.c libmpcodecs/vf_eq.c libmpcodecs/vf_expand.c libmpcodecs/vf_format.c libmpcodecs/vf_hue.c libmpcodecs/vf_noformat.c libmpcodecs/vf_scale.c m_struct.h

reimar subversion at mplayerhq.hu
Sun Jan 28 17:48:02 CET 2007


Author: reimar
Date: Sun Jan 28 17:48:01 2007
New Revision: 22045

Modified:
   trunk/libmpcodecs/vf_ass.c
   trunk/libmpcodecs/vf_crop.c
   trunk/libmpcodecs/vf_delogo.c
   trunk/libmpcodecs/vf_eq.c
   trunk/libmpcodecs/vf_expand.c
   trunk/libmpcodecs/vf_format.c
   trunk/libmpcodecs/vf_hue.c
   trunk/libmpcodecs/vf_noformat.c
   trunk/libmpcodecs/vf_scale.c
   trunk/m_struct.h

Log:
Mark m_struct_t defaults as const


Modified: trunk/libmpcodecs/vf_ass.c
==============================================================================
--- trunk/libmpcodecs/vf_ass.c	(original)
+++ trunk/libmpcodecs/vf_ass.c	Sun Jan 28 17:48:01 2007
@@ -64,7 +64,7 @@
 
 	unsigned char* planes[3];
 	unsigned char* dirty_rows;
-} vf_priv_dflt;
+} const vf_priv_dflt;
 
 extern int opt_screen_size_x;
 extern int opt_screen_size_y;

Modified: trunk/libmpcodecs/vf_crop.c
==============================================================================
--- trunk/libmpcodecs/vf_crop.c	(original)
+++ trunk/libmpcodecs/vf_crop.c	Sun Jan 28 17:48:01 2007
@@ -16,7 +16,7 @@
 static struct vf_priv_s {
     int crop_w,crop_h;
     int crop_x,crop_y;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   -1,-1,
   -1,-1
 };

Modified: trunk/libmpcodecs/vf_delogo.c
==============================================================================
--- trunk/libmpcodecs/vf_delogo.c	(original)
+++ trunk/libmpcodecs/vf_delogo.c	Sun Jan 28 17:48:01 2007
@@ -45,7 +45,7 @@
 static struct vf_priv_s {
     unsigned int outfmt;
     int xoff, yoff, lw, lh, band, show;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
     0,
     0, 0, 0, 0, 0, 0
 };

Modified: trunk/libmpcodecs/vf_eq.c
==============================================================================
--- trunk/libmpcodecs/vf_eq.c	(original)
+++ trunk/libmpcodecs/vf_eq.c	Sun Jan 28 17:48:01 2007
@@ -21,7 +21,7 @@
 	unsigned char *buf;
 	int brightness;
 	int contrast;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   NULL,
   0,
   0

Modified: trunk/libmpcodecs/vf_expand.c
==============================================================================
--- trunk/libmpcodecs/vf_expand.c	(original)
+++ trunk/libmpcodecs/vf_expand.c	Sun Jan 28 17:48:01 2007
@@ -33,7 +33,7 @@
     unsigned char* fb_ptr;
     int passthrough;
     int first_slice;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   -1,-1,
   -1,-1,
   0,

Modified: trunk/libmpcodecs/vf_format.c
==============================================================================
--- trunk/libmpcodecs/vf_format.c	(original)
+++ trunk/libmpcodecs/vf_format.c	Sun Jan 28 17:48:01 2007
@@ -16,7 +16,7 @@
 
 static struct vf_priv_s {
     unsigned int fmt;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   IMGFMT_YUY2
 };
 

Modified: trunk/libmpcodecs/vf_hue.c
==============================================================================
--- trunk/libmpcodecs/vf_hue.c	(original)
+++ trunk/libmpcodecs/vf_hue.c	Sun Jan 28 17:48:01 2007
@@ -21,7 +21,7 @@
 	uint8_t *buf[2];
 	float hue;
 	float saturation;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   {NULL, NULL},
   0.0,
   1.0,

Modified: trunk/libmpcodecs/vf_noformat.c
==============================================================================
--- trunk/libmpcodecs/vf_noformat.c	(original)
+++ trunk/libmpcodecs/vf_noformat.c	Sun Jan 28 17:48:01 2007
@@ -16,7 +16,7 @@
 
 static struct vf_priv_s {
     unsigned int fmt;
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   IMGFMT_YV12
 };
 

Modified: trunk/libmpcodecs/vf_scale.c
==============================================================================
--- trunk/libmpcodecs/vf_scale.c	(original)
+++ trunk/libmpcodecs/vf_scale.c	Sun Jan 28 17:48:01 2007
@@ -31,7 +31,7 @@
     int noup;
     int accurate_rnd;
     int query_format_cache[64];
-} vf_priv_dflt = {
+} const vf_priv_dflt = {
   -1,-1,
   0,
   {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT},

Modified: trunk/m_struct.h
==============================================================================
--- trunk/m_struct.h	(original)
+++ trunk/m_struct.h	Sun Jan 28 17:48:01 2007
@@ -17,7 +17,7 @@
   /// size of the whole struct
   unsigned int size;
   /// Pointer to a struct filled with the default settings
-  void* defaults;
+  const void* defaults;
   /// Field list.
   /** The p field of the \ref m_option struct must contain the offset
    *  of the member in the struct (use M_ST_OFF macro for this).



More information about the MPlayer-cvslog mailing list