diff --git a/ffplay.c b/ffplay.c
index 93090ad..5b45cb5 100644
|
a
|
b
|
static int read_thread(void *arg) |
| 2636 | 2636 | if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) { |
| 2637 | 2637 | ret = stream_component_open(is, st_index[AVMEDIA_TYPE_VIDEO]); |
| 2638 | 2638 | } |
| 2639 | | is->refresh_tid = SDL_CreateThread(refresh_thread, is); |
| 2640 | 2639 | if (is->show_mode == SHOW_MODE_NONE) |
| 2641 | 2640 | is->show_mode = ret >= 0 ? SHOW_MODE_VIDEO : SHOW_MODE_RDFT; |
| 2642 | 2641 | |
| | 2642 | is->refresh_tid = SDL_CreateThread(refresh_thread, is); |
| | 2643 | |
| 2643 | 2644 | if (st_index[AVMEDIA_TYPE_SUBTITLE] >= 0) { |
| 2644 | 2645 | stream_component_open(is, st_index[AVMEDIA_TYPE_SUBTITLE]); |
| 2645 | 2646 | } |