[MPlayer-dev-eng] [PATCH] Frame stepping (i.e. seeking while paused)

D Richard Felker III dalias at aerifal.cx
Thu Jul 8 22:55:34 CEST 2004


On Thu, Jul 08, 2004 at 06:50:30PM +0300, Jan Knutar wrote:
> 
> > Making mplayer realtime is incredibly dumb since it can and will lock
> > up the system on bad movies.
> 
> Yes, I agree.
> 
> > In fact making any process realtime is 
> > incredibly dumb.
> 
> Indeed, I learned this the hard way, with one of my own programs that 
> made the fatal assumption that the "enlightened" bit in 'esd' did not 
> stand for "so fucked up high on crack and pot you wouldnt believe it".

I'm told some users have experienced the same thing with tvtime... ;)

> > That would make a lot more sense. Actually you could do it via /proc:
> > mmap /proc/[pid]/mem and mlock it.
> 
> Erk, really?

In theory it should work. mmap on /proc/[pid]/mem gives you direct
access to another process's memory space, assuming your have
permissions to open it. Since it's the same pages in physical memory,
locking them from another process should still have the desired
effect. Of course this is something of a hack and the kernel might not
behave right, so who knows... You'll have to RTFS the kernel or try it
to know for sure. :)

Rich




More information about the MPlayer-dev-eng mailing list