[MPlayer-dev-eng] [PATCH] fix for Xv when shared memory allocation failed
The Wanderer
inverseparadox at comcast.net
Wed Dec 7 22:31:03 CET 2005
Alexander Strasser wrote:
> Hi,
>
> joerg at britannica.bec.de wrote:
>
>> attached fixes a problem with the initialisation of Xv. When the
>> shmget failed, libX11 would abort due to invalid parameters. This
>> can happen e.g. on NetBSD with the GENERIC kernel and PostgreSQL
>> running in the background. Ideally the shmat would be checked too,
>> but that would make the patch more messy.
>
> Patch looks correct so far but the same code is more or less
> duplicated in vo xvmc with missing error check too. Unfotunately
> there is no easy way to merge the two. I would say making the same
> change in vo_xvmc.c is the way to go for now.
Any other comments?
If not, since no one's spoken up against it, I'll apply this patch and
make similar changes to vo_xvmc.c as well within the next few days.
--
The Wanderer
Warning: Simply because I argue an issue does not mean I agree with any
side of it.
Secrecy is the beginning of tyranny.
More information about the MPlayer-dev-eng
mailing list