Ticket #2174: fix-modeset-order.patch

File fix-modeset-order.patch, 639 bytes (added by cus, 6 years ago)
  • ffplay.c

    diff --git a/ffplay.c b/ffplay.c
    index 93090ad..5b45cb5 100644
    a b static int read_thread(void *arg) 
    26362636    if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
    26372637        ret = stream_component_open(is, st_index[AVMEDIA_TYPE_VIDEO]);
    26382638    }
    2639     is->refresh_tid = SDL_CreateThread(refresh_thread, is);
    26402639    if (is->show_mode == SHOW_MODE_NONE)
    26412640        is->show_mode = ret >= 0 ? SHOW_MODE_VIDEO : SHOW_MODE_RDFT;
    26422641
     2642    is->refresh_tid = SDL_CreateThread(refresh_thread, is);
     2643
    26432644    if (st_index[AVMEDIA_TYPE_SUBTITLE] >= 0) {
    26442645        stream_component_open(is, st_index[AVMEDIA_TYPE_SUBTITLE]);
    26452646    }