video_output: removes warnings about unused parameters in vlc callbacks
authorRafaël Carré <funman@videolan.org>
Mon, 28 Jan 2008 16:34:39 +0000 (16:34 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 28 Jan 2008 16:34:39 +0000 (16:34 +0000)
src/video_output/vout_intf.c
src/video_output/vout_subpictures.c

index 7ee1b2c..9a56bbb 100644 (file)
@@ -1197,6 +1197,8 @@ static int FullscreenCallback( vlc_object_t *p_this, char const *psz_cmd,
 static int SnapshotCallback( vlc_object_t *p_this, char const *psz_cmd,
                        vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval);
+    VLC_UNUSED(newval); VLC_UNUSED(p_data);
     vout_thread_t *p_vout = (vout_thread_t *)p_this;
     vout_Control( p_vout, VOUT_SNAPSHOT );
     return VLC_SUCCESS;
@@ -1205,6 +1207,8 @@ static int SnapshotCallback( vlc_object_t *p_this, char const *psz_cmd,
 static int TitleShowCallback( vlc_object_t *p_this, char const *psz_cmd,
                        vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval);
+    VLC_UNUSED(p_data);
     vout_thread_t *p_vout = (vout_thread_t *)p_this;
     p_vout->b_title_show = newval.b_bool;
     return VLC_SUCCESS;
@@ -1213,6 +1217,7 @@ static int TitleShowCallback( vlc_object_t *p_this, char const *psz_cmd,
 static int TitleTimeoutCallback( vlc_object_t *p_this, char const *psz_cmd,
                        vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval); VLC_UNUSED(p_data);
     vout_thread_t *p_vout = (vout_thread_t *)p_this;
     p_vout->i_title_timeout = (mtime_t) newval.i_int;
     return VLC_SUCCESS;
@@ -1221,6 +1226,8 @@ static int TitleTimeoutCallback( vlc_object_t *p_this, char const *psz_cmd,
 static int TitlePositionCallback( vlc_object_t *p_this, char const *psz_cmd,
                        vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval);
+    VLC_UNUSED(p_data);
     vout_thread_t *p_vout = (vout_thread_t *)p_this;
     p_vout->i_title_position = newval.i_int;
     return VLC_SUCCESS;
index 3b7ff37..5a55efd 100644 (file)
@@ -1393,7 +1393,8 @@ static void spu_del_video_buffer( filter_t *p_filter, picture_t *p_pic )
 static int SubFilterCallback( vlc_object_t *p_object, char const *psz_var,
                          vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
-    (void)p_object; (void)oldval; (void)newval;
+    VLC_UNUSED(p_object); VLC_UNUSED(oldval);
+    VLC_UNUSED(newval); VLC_UNUSED(psz_var);
 
     spu_t *p_spu = (spu_t *)p_data;
     vlc_mutex_lock( &p_spu->subpicture_lock );