Commit e040d6f0 authored by michael's avatar michael

fix issue 1747


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21874 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a94bc26b
...@@ -2070,9 +2070,11 @@ static int decode_thread(void *arg) ...@@ -2070,9 +2070,11 @@ static int decode_thread(void *arg)
stream_component_open(is, audio_index); stream_component_open(is, audio_index);
} }
ret=-1;
if (video_index >= 0) { if (video_index >= 0) {
stream_component_open(is, video_index); ret= stream_component_open(is, video_index);
} else { }
if(ret<0) {
/* add the refresh timer to draw the picture */ /* add the refresh timer to draw the picture */
schedule_refresh(is, 40); schedule_refresh(is, 40);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment