[vlc-commits] lib/video: remove unused variable

Thomas Guillem git at videolan.org
Tue Mar 14 14:42:34 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 14 14:23:15 2017 +0100| [78018b360221c7c8a1243e1483069804f303ac7f] | committer: Thomas Guillem

lib/video: remove unused variable

configs are generally not written from libvlc.

Ref #17761

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

 lib/video.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/lib/video.c b/lib/video.c
index a275f72..3968e71 100644
--- a/lib/video.c
+++ b/lib/video.c
@@ -659,7 +659,7 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi,
 /* ************** */
 
 static void vout_EnableFilter( vout_thread_t *p_vout, const char *psz_name,
-                               bool b_add, bool b_setconfig )
+                               bool b_add )
 {
     char *psz_parser;
     char *psz_string;
@@ -736,11 +736,6 @@ static void vout_EnableFilter( vout_thread_t *p_vout, const char *psz_name,
          }
     }
 
-    if( b_setconfig )
-    {
-        config_PutPsz( p_vout, psz_filter_type, psz_string );
-    }
-
     var_SetString( p_vout, psz_filter_type, psz_string );
 
     free( psz_string );
@@ -785,7 +780,7 @@ set_int( libvlc_media_player_t *p_mi, const char *restrict name,
             vout_thread_t *vout = GetVout( p_mi, 0 );
             if (vout != NULL)
             {   /* Fill sub-source */
-                vout_EnableFilter( vout, opt->name, value, false );
+                vout_EnableFilter( vout, opt->name, value );
                 var_TriggerCallback( vout, "sub-source" );
                 vlc_object_release( vout );
             }



More information about the vlc-commits mailing list