summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-01-02 12:19:28 +0100
committerLuca Barbato <lu_zero@gentoo.org>2016-01-25 09:12:02 +0100
commitfdd464cb7045298852072b1efa6b6ac04c23fb33 (patch)
tree52ca8b3772d698dacf6a4c90d33a3d973b2d485f /avplay.c
parentf22f9005943246613039d0e907b71b34afabedce (diff)
avplay: Allocate the refresh thread next to the decode thread
It does not belong to the stream setup. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index 0de5b93ea9..0a079c8791 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2381,7 +2381,6 @@ static int stream_setup(VideoState *is)
if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
ret = stream_component_open(is, st_index[AVMEDIA_TYPE_VIDEO]);
}
- is->refresh_tid = SDL_CreateThread(refresh_thread, is);
if (ret < 0) {
if (!display_disable)
is->show_audio = 2;
@@ -2567,6 +2566,7 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat)
is->subpq_cond = SDL_CreateCond();
is->av_sync_type = av_sync_type;
+ is->refresh_tid = SDL_CreateThread(refresh_thread, is);
is->parse_tid = SDL_CreateThread(decode_thread, is);
if (!is->parse_tid) {
av_free(is);