[vlc-devel] commit: Fix a few compilation warnings. (Antoine Cellerier )

git version control git at videolan.org
Wed Jun 4 13:13:52 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed Jun  4 12:56:46 2008 +0200| [5cc4255aa74f938e38cbdd9dcca4136475a4bc3f]

Fix a few compilation warnings.

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

 src/misc/objects.c               |    1 +
 src/video_output/vout_pictures.c |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index e8e0ff0..6791737 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -1600,6 +1600,7 @@ void vlc_refcheck (vlc_object_t *obj)
 
 static void held_objects_destroy (void *data)
 {
+    VLC_UNUSED( data );
     held_list_t *hl = vlc_threadvar_get (&held_objects);
     vlc_object_t *caller = vlc_threadobj ();
 
diff --git a/src/video_output/vout_pictures.c b/src/video_output/vout_pictures.c
index 62cc9b2..44ab4c2 100644
--- a/src/video_output/vout_pictures.c
+++ b/src/video_output/vout_pictures.c
@@ -378,7 +378,7 @@ picture_t * vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
         }
 
         /* Convert image to the first direct buffer */
-        p_vout->p_chroma->p_owner = (picture_t *)p_tmp_pic;
+        p_vout->p_chroma->p_owner = (filter_owner_sys_t *)p_tmp_pic;
         p_vout->p_chroma->pf_video_filter( p_vout->p_chroma, p_pic );
 
         /* Render subpictures on the first direct buffer */
@@ -399,7 +399,7 @@ picture_t * vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
                 return NULL;
 
         /* Convert image to the first direct buffer */
-        p_vout->p_chroma->p_owner = (picture_t *)&p_vout->p_picture[0];
+        p_vout->p_chroma->p_owner = (filter_owner_sys_t *)&p_vout->p_picture[0];
         p_vout->p_chroma->pf_video_filter( p_vout->p_chroma, p_pic );
 
         /* Render subpictures on the first direct buffer */
@@ -926,6 +926,7 @@ int vout_ChromaCmp( vlc_fourcc_t i_chroma, vlc_fourcc_t i_amorhc )
 void __vout_CopyPicture( vlc_object_t *p_this,
                          picture_t *p_dest, picture_t *p_src )
 {
+    VLC_UNUSED( p_this );
     int i;
 
     for( i = 0; i < p_src->i_planes ; i++ )




More information about the vlc-devel mailing list