[ffmpeg-devel] question about SDL_EventState(SDL_USEREVENT,	SDL_IGNORE) in ffplay
    zuo bf 
    zuobf.bupt
       
    Mon Jul 11 13:54:33 CEST 2005
    
    
  
Hi all,
>From "amiga.sourceforge.net <http://amiga.sourceforge.net>", i got the 
following explanation about SDL_EventState:
This function allows you to set the state of processing certain event type's.
If state is set to SDL_IGNORE, that event type will be automatically dropped
from the event queue and will not be filtered.
 but in ffplay, there is:
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);    And
#define FF_ALLOC_EVENT   (SDL_USEREVENT) And
        case FF_ALLOC_EVENT:
            alloc_picture(event.user.data1);
            break;
And function alloc_picture is called once, is this the right behaviour?
Do i misunderstand something? I mean whether the event loop should receive
a event of FF_ALLOC_EVENT:)
Any help would be greatly appreciated!!!:)
Thanks!
    
    
More information about the ffmpeg-devel
mailing list