diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-18 00:19:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-18 00:19:50 +0000 |
commit | 077a8d61c067556c25eb7377cc94cc200ba2c84b (patch) | |
tree | 9a935b8e80eb479f27cb45e984ca88fa9d1d929c /ffplay.c | |
parent | 5e46be96f86597f31f53a94d1704ffb8299bec32 (diff) | |
download | ffmpeg-077a8d61c067556c25eb7377cc94cc200ba2c84b.tar.gz |
fix issue 1747
Originally committed as revision 21874 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2070,9 +2070,11 @@ static int decode_thread(void *arg) stream_component_open(is, audio_index); } + ret=-1; if (video_index >= 0) { - stream_component_open(is, video_index); - } else { + ret= stream_component_open(is, video_index); + } + if(ret<0) { /* add the refresh timer to draw the picture */ schedule_refresh(is, 40); |