# HG changeset patch # User arpi # Date 1035303866 0 # Node ID 3c1d30a1afc04b194cf6ee886597b45b1ce3e5bd # Parent f1e6a68a42f1f116b5d3deaf5cd234341e79dc67 compiler warning fixes by Dominik diff -r f1e6a68a42f1 -r 3c1d30a1afc0 libao2/audio_out.c --- a/libao2/audio_out.c Tue Oct 22 16:02:21 2002 +0000 +++ b/libao2/audio_out.c Tue Oct 22 16:24:26 2002 +0000 @@ -1,5 +1,6 @@ #include #include +#include #include "../config.h" #include "audio_out.h" diff -r f1e6a68a42f1 -r 3c1d30a1afc0 libmpcodecs/vf_1bpp.c --- a/libmpcodecs/vf_1bpp.c Tue Oct 22 16:02:21 2002 +0000 +++ b/libmpcodecs/vf_1bpp.c Tue Oct 22 16:24:26 2002 +0000 @@ -148,7 +148,7 @@ break; default: mp_msg(MSGT_VFILTER,MSGL_ERR,"Unhandled format: 0x%X\n",dmpi->imgfmt); - return NULL; + return 0; } return vf_next_put_image(vf,dmpi); diff -r f1e6a68a42f1 -r 3c1d30a1afc0 libvo/vo_xv.c --- a/libvo/vo_xv.c Tue Oct 22 16:02:21 2002 +0000 +++ b/libvo/vo_xv.c Tue Oct 22 16:24:26 2002 +0000 @@ -466,7 +466,7 @@ } if ( Shmem_Flag ) { - xvimage[foo] = XvShmCreateImage(mDisplay, xv_port, xv_format, 0, image_width, image_height, &Shminfo[foo]); + xvimage[foo] = (XvImage *) XvShmCreateImage(mDisplay, xv_port, xv_format, NULL, image_width, image_height, &Shminfo[foo]); Shminfo[foo].shmid = shmget(IPC_PRIVATE, xvimage[foo]->data_size, IPC_CREAT | 0777); Shminfo[foo].shmaddr = (char *) shmat(Shminfo[foo].shmid, 0, 0); @@ -480,7 +480,7 @@ else #endif { - xvimage[foo] = XvCreateImage(mDisplay, xv_port, xv_format, 0, image_width, image_height); + xvimage[foo] = (XvImage *) XvCreateImage(mDisplay, xv_port, xv_format, NULL, image_width, image_height); xvimage[foo]->data = malloc(xvimage[foo]->data_size); XSync(mDisplay,False); }