[MPlayer-dev-eng] [PATCH] VF Overlay

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Feb 28 16:39:30 CET 2010


On Sun, Feb 28, 2010 at 04:36:54PM +0100, Reimar Döffinger wrote:
> On Sun, Feb 28, 2010 at 10:11:40AM -0500, Jason Tackaberry wrote:
> > > (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.
> 
> Uh, why don't you do IPC_RMID right after shmat?
> Then the shared memory will be deleted as soon as both MPlayer and application
> detach...

Also, the way it is done currently, won't the attach count increase each time
config() is called? We attach each time config is called but never detach...



More information about the MPlayer-dev-eng mailing list