[vlc-commits] Remove no-op variable callback

Rémi Denis-Courmont git at videolan.org
Wed Aug 31 23:02:54 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 31 19:50:23 2011 +0300| [c0d70328b4b9063ee6932782095c682f13b39994] | committer: Rémi Denis-Courmont

Remove no-op variable callback

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

 modules/visualization/visual/visual.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/modules/visualization/visual/visual.c b/modules/visualization/visual/visual.c
index 6ec2d2d..964924c 100644
--- a/modules/visualization/visual/visual.c
+++ b/modules/visualization/visual/visual.c
@@ -152,8 +152,6 @@ vlc_module_end ()
  * Local prototypes
  *****************************************************************************/
 static block_t *DoWork( filter_t *, block_t * );
-static int FilterCallback( vlc_object_t *, char const *,
-                           vlc_value_t, vlc_value_t, void * );
 static const struct
 {
     const char *psz_name;
@@ -205,7 +203,6 @@ static int Open( vlc_object_t *p_this )
 
     /* Parse the effect list */
     psz_parser = psz_effects = var_CreateGetString( p_filter, "effect-list" );
-    var_AddCallback( p_filter, "effect-list", FilterCallback, NULL );
 
     while( psz_parser && *psz_parser != '\0' )
     {
@@ -398,20 +395,3 @@ static void Close( vlc_object_t *p_this )
     free( p_sys->effect );
     free( p_filter->p_sys );
 }
-
-/*****************************************************************************
- * FilterCallback: called when changing the deinterlace method on the fly.
- *****************************************************************************/
-static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
-                           vlc_value_t oldval, vlc_value_t newval,
-                           void *p_data )
-{
-    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval);
-    VLC_UNUSED(p_data); VLC_UNUSED(newval);
-
-    filter_t     *p_filter = (filter_t *)p_this;
-    /* restart this baby */
-    msg_Dbg( p_filter, "we should restart the visual filter" );
-    return VLC_SUCCESS;
-}
-



More information about the vlc-commits mailing list