[MPlayer-dev-eng] [PATCH] VF Overlay
Jason Tackaberry
tack at urandom.ca
Sun Feb 28 16:11:40 CET 2010
On Sun, 2010-02-28 at 08:04 +0100, Reimar Döffinger wrote:
> Can't you have the application create the SHM region instead of
> the atexit?
Not really, because the application can't easily know a priori how big
to make the shm buffer. The shm buffer is sized based on the dsize of
the current video.
We could require that the application allocates a shm buffer that's
likely to be big enough for any video (something a bit bigger than
1920*1088*4). This puts the burden of managing the shm region to the
application, but wastes memory -- but maybe not enough memory to care
about?
> (though I think that the atexit is not really needed in any case,
> the kernel should delete it if nobody uses it anymore - unfortunately
> I don't know how to verify that).
I don't know how to verify it either. I know that ipcs lists the
leftover segment, but nattach=0, so it's possible that while the entry
is there it's not actually using up any memory for the buffer.
More information about the MPlayer-dev-eng
mailing list