X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fpuzzle.c;h=f4a9137b577b302a1d3814d79fa2d7c7b5008de1;hb=34ab57aad3f670855d4b6d6b2812e7997c5beea4;hp=5097f7ec92197e93ff9b35904de5ab6a69e7b4bb;hpb=806cf5165824be921bf2402ecf11fd3ee6501f9c;p=vlc diff --git a/modules/video_filter/puzzle.c b/modules/video_filter/puzzle.c index 5097f7ec92..f4a9137b57 100644 --- a/modules/video_filter/puzzle.c +++ b/modules/video_filter/puzzle.c @@ -25,6 +25,10 @@ * Preamble *****************************************************************************/ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include @@ -75,13 +79,10 @@ vlc_module_begin(); add_integer_with_range( CFG_PREFIX "rows", 4, 1, 128, NULL, ROWS_TEXT, ROWS_LONGTEXT, VLC_FALSE ); - change_safe(); add_integer_with_range( CFG_PREFIX "cols", 4, 1, 128, NULL, COLS_TEXT, COLS_LONGTEXT, VLC_FALSE ); - change_safe(); add_bool( CFG_PREFIX "black-slot", 0, NULL, BLACKSLOT_TEXT, BLACKSLOT_LONGTEXT, VLC_FALSE ); - change_safe(); set_callbacks( Create, Destroy ); vlc_module_end(); @@ -471,6 +472,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic ) static int SendEvents( vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data ) { + VLC_UNUSED(p_this); VLC_UNUSED(oldval); + var_Set( (vlc_object_t *)p_data, psz_var, newval ); return VLC_SUCCESS; @@ -482,6 +485,7 @@ static int SendEvents( vlc_object_t *p_this, char const *psz_var, static int SendEventsToChild( vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data ) { + VLC_UNUSED(p_data); VLC_UNUSED(oldval); vout_thread_t *p_vout = (vout_thread_t *)p_this; var_Set( p_vout->p_sys->p_vout, psz_var, newval ); return VLC_SUCCESS; @@ -493,6 +497,7 @@ static int SendEventsToChild( vlc_object_t *p_this, char const *psz_var, static int MouseEvent( vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data ) { + VLC_UNUSED(p_this); VLC_UNUSED(oldval); VLC_UNUSED(newval); vout_thread_t *p_vout = (vout_thread_t*)p_data; int i_x, i_y; int i_v; @@ -563,6 +568,7 @@ static int PuzzleCallback( vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data ) { + VLC_UNUSED(p_this); VLC_UNUSED(oldval); vout_sys_t *p_sys = (vout_sys_t *)p_data; if( !strcmp( psz_var, CFG_PREFIX "rows" ) ) {