Ticket #38: ffplay2.diff

File ffplay2.diff, 929 bytes (added by ami_stuff, 5 years ago)
  • ffplay.c

    diff --git a/ffplay.c b/ffplay.c
    index ffe1c0f..32e7b6a 100644
    a b static int debug_mv = 0; 
    248248static int step = 0; 
    249249static int thread_count = 1; 
    250250static int workaround_bugs = 1; 
     251static int failed = 0; 
    251252static int fast = 0; 
    252253static int genpts = 0; 
    253254static int lowres = 0; 
    static int video_thread(void *arg) 
    17481749    AVFilterGraph *graph = avfilter_graph_alloc(); 
    17491750    AVFilterContext *filt_out = NULL; 
    17501751 
    1751     if ((ret = configure_video_filters(graph, is, vfilters)) < 0) 
     1752    if ((ret = configure_video_filters(graph, is, vfilters)) < 0) { 
     1753        failed = 1; 
    17521754        goto the_end; 
     1755    }    
    17531756    filt_out = is->out_video_filter; 
    17541757#endif 
    17551758 
    static void event_loop(void) 
    26772680    double incr, pos, frac; 
    26782681 
    26792682    for(;;) { 
     2683 
     2684        if(failed) 
     2685        do_exit(); 
     2686 
    26802687        double x; 
    26812688        SDL_WaitEvent(&event); 
    26822689        switch(event.type) {