Mercurial > mplayer.hg
diff libvo/vo_xv.c @ 7848:3c1d30a1afc0
compiler warning fixes by Dominik
author | arpi |
---|---|
date | Tue, 22 Oct 2002 16:24:26 +0000 |
parents | 52171f231d4d |
children | 3c690d2ad1ac |
line wrap: on
line diff
--- 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); }