diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-02 22:43:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-02 22:43:09 +0000 |
commit | 48ff3f7cc889f4efc06b2bf4c4e44935e7f63cfb (patch) | |
tree | a8c17f2698b25f6a498243ca3fc77cb78484f733 /ffplay.c | |
parent | c5e1e9827d8aaced8b96a49859a6b0a1cd007d20 (diff) | |
download | ffmpeg-48ff3f7cc889f4efc06b2bf4c4e44935e7f63cfb.tar.gz |
Move the initial refresh scheduling for audio display away from where it
can interfere with video.
Originally committed as revision 21616 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1068,7 +1068,7 @@ static void video_refresh_timer(void *opaque) if (is->video_st) { if (is->pictq_size == 0) { -// fprintf(stderr, "Internal error detected in the SDL timer\n"); + fprintf(stderr, "Internal error detected in the SDL timer\n"); } else { /* dequeue the picture */ vp = &is->pictq[is->pictq_rindex]; @@ -2022,6 +2022,9 @@ static int decode_thread(void *arg) if (video_index >= 0) { stream_component_open(is, video_index); } else { + /* add the refresh timer to draw the picture */ + schedule_refresh(is, 40); + if (!display_disable) is->show_audio = 1; } @@ -2173,9 +2176,6 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat) is->subpq_mutex = SDL_CreateMutex(); is->subpq_cond = SDL_CreateCond(); - /* add the refresh timer to draw the picture */ - schedule_refresh(is, 40); - is->av_sync_type = av_sync_type; is->parse_tid = SDL_CreateThread(decode_thread, is); if (!is->parse_tid) { |