[vlc-commits] visual: remove write only field psz_args

Rémi Denis-Courmont git at videolan.org
Fri Apr 19 22:08:27 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 19 22:44:04 2013 +0300| [6c636f2ca11f8d9638b73f961af03890660f2e4d] | committer: Rémi Denis-Courmont

visual: remove write only field psz_args

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

 modules/visualization/visual/visual.c |    7 -------
 modules/visualization/visual/visual.h |    1 -
 2 files changed, 8 deletions(-)

diff --git a/modules/visualization/visual/visual.c b/modules/visualization/visual/visual.c
index b609131..7b053e0 100644
--- a/modules/visualization/visual/visual.c
+++ b/modules/visualization/visual/visual.c
@@ -222,7 +222,6 @@ static int Open( vlc_object_t *p_this )
         p_effect->i_idx_left  = 0;
         p_effect->i_idx_right = __MIN( 1, p_effect->i_nb_chans-1 );
 
-        p_effect->psz_args = NULL;
         p_effect->p_data   = NULL;
 
         p_effect->pf_run   = NULL;
@@ -256,8 +255,6 @@ static int Open( vlc_object_t *p_this )
                    free( p_effect );
                    break;
                 }
-                p_effect->psz_args =
-                    strndup( psz_parser, psz_eoa - psz_parser);
             }
             TAB_APPEND( p_sys->i_effect, p_sys->effect, p_effect );
         }
@@ -305,10 +302,7 @@ static int Open( vlc_object_t *p_this )
     {
         msg_Err( p_filter, "no suitable vout module" );
         for( int i = 0; i < p_sys->i_effect; i++ )
-        {
-            free( p_sys->effect[i]->psz_args );
             free( p_sys->effect[i] );
-        }
         free( p_sys->effect );
         free( p_sys );
         return VLC_EGENERIC;
@@ -394,7 +388,6 @@ static void Close( vlc_object_t *p_this )
             }
             free( p_effect->p_data );
         }
-        free( p_effect->psz_args );
         free( p_effect );
 #undef p_effect
     }
diff --git a/modules/visualization/visual/visual.h b/modules/visualization/visual/visual.h
index f4c8c0b..fa4424e 100644
--- a/modules/visualization/visual/visual.h
+++ b/modules/visualization/visual/visual.h
@@ -30,7 +30,6 @@ typedef struct visual_effect_t
     void *     p_data; /* The effect stores whatever it wants here */
     int        i_width;
     int        i_height;
-    char *     psz_args;
     int        i_nb_chans;
 
     /* Channels index */



More information about the vlc-commits mailing list