[vlc-commits] commit: Remove read-only field p_callback_data ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Oct 22 18:33:08 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 22 19:31:57 2010 +0300| [aec33ea6e8d42561168df4da7337b50efe639245] | committer: Rémi Denis-Courmont 

Remove read-only field p_callback_data

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

 include/vlc_configuration.h |    1 -
 src/config/core.c           |    3 +--
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/include/vlc_configuration.h b/include/vlc_configuration.h
index 09caeb9..96a0792 100644
--- a/include/vlc_configuration.h
+++ b/include/vlc_configuration.h
@@ -157,7 +157,6 @@ struct module_config_t
 
     /* Function to call when commiting a change */
     vlc_callback_t pf_callback;
-    void          *p_callback_data;
 
     /* Values list */
     char **      ppsz_list;       /* List of possible values for the option */
diff --git a/src/config/core.c b/src/config/core.c
index df6a0d2..255df83 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -294,8 +294,7 @@ void config_PutPsz( vlc_object_t *p_this,
         vlc_value_t val;
 
         val.psz_string = (char *)psz_value;
-        p_config->pf_callback( p_this, psz_name, oldval, val,
-                               p_config->p_callback_data );
+        p_config->pf_callback( p_this, psz_name, oldval, val, NULL );
     }
 
     /* free old string */



More information about the vlc-commits mailing list