[vlc-devel] [PATCH] adding posterize video filter

Rémi Denis-Courmont remi at remlab.net
Tue Sep 14 04:03:33 CEST 2010


Fine with me...

+static int FilterCallback ( vlc_object_t *p_this, char const *psz_var,
+                            vlc_value_t oldval, vlc_value_t newval, void 
*p_data )
+{
+    (void)oldval;    (void)p_data;
+    filter_t *p_filter = (filter_t*)p_this;
+    filter_sys_t *p_sys = p_filter->p_sys;
+
+    if( !strcmp( psz_var, CFG_PREFIX "level" ) )

This is always true, so not really needed. I guess it is a matter of taste.

+    {
+        vlc_mutex_lock( &p_sys->lock );
+        p_sys->i_level = newval.i_int;
+        vlc_mutex_unlock( &p_sys->lock );
+    }
+
+    return VLC_SUCCESS;
+}

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list