[FFmpeg-devel] [PATCH] Fix ffplay -nodisp behaviour

pross at xvid.org pross
Sun Nov 4 02:01:50 CET 2007


On Sun, Oct 28, 2007 at 10:04:53PM +0100, Aurelien Jacobs wrote:
> Michael Niedermayer wrote:
> 
> > Hi
> > 
> > On Sun, Oct 28, 2007 at 11:35:52AM +1100, pross at xvid.org wrote:
> > > Enclose patch causes ffmpeg to skip SDL video driver initialisation when
> > > the -nodisp argument is supplied. This allows use of ffplay from a terminal
> > > without video display caps.
> > 
> > looks ok if it works
> 
> Seems to work except that ffplay -nodisp now use 100% CPU !
> This probably need to be fixed before this patch is applied.

Bugger... the SDL video driver provides all the keyboard and event stuff,
which causes the event_loop() function to spin endlessly. Fixing nodisp
properly, so that existing functionality (eg. keyboard seeking), will
involve a major overhaul to remove/abtract the SDL dependancies.

-- pete




More information about the ffmpeg-devel mailing list