]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/gradient.c
Mostly revert [25311], [25313].
[vlc] / modules / video_filter / gradient.c
index 9f4de6ddca53c78dd0d78a7ec0f578f23e45d4ae..300fb8bc556e8b6d7b5145392977715e150ce54d 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>                                      /* malloc(), free() */
-#include <string.h>
 
 #include <math.h>                                            /* sin(), cos() */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_sout.h>
 #include <vlc_vout.h>
@@ -744,6 +746,7 @@ static int GradientCallback( vlc_object_t *p_this, char const *psz_var,
                              vlc_value_t oldval, vlc_value_t newval,
                              void *p_data )
 {
+    VLC_UNUSED(oldval);
     filter_sys_t *p_sys = (filter_sys_t *)p_data;
     if( !strcmp( psz_var, FILTER_PREFIX "mode" ) )
     {