case FF_QUIT_EVENT:
void event_loop(void){    SDL_Event event;    for(;;) {        SDL_WaitEvent(&event);        switch(event.type) {        case SDL_KEYDOWN:            switch(event.key.keysym.sym) {            case SDLK_ESCAPE:            case SDLK_q:                do_exit();                break;            case SDLK_f:                toggle_full_screen();                break;            case SDLK_p:            case SDLK_SPACE:                toggle_pause();                break;            case SDLK_a:                toggle_audio_display();                break;            default:                break;            }            break;        case SDL_VIDEORESIZE:            if (cur_stream) {                screen = SDL_SetVideoMode(event.resize.w, event.resize.h, 0,                                           SDL_HWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_HWACCEL);                cur_stream->width = event.resize.w;                cur_stream->height = event.resize.h;            }            break;        case SDL_QUIT:            do_exit();            break;        case FF_ALLOC_EVENT:            alloc_picture(event.user.data1);            break;        case FF_REFRESH_EVENT:            video_refresh_timer(event.user.data1);            break;        default:            break;        }    }}