[FFmpeg-cvslog] r21874 - trunk/ffplay.c

michael subversion
Thu Feb 18 01:19:50 CET 2010


Author: michael
Date: Thu Feb 18 01:19:50 2010
New Revision: 21874

Log:
fix issue 1747

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Thu Feb 18 00:58:59 2010	(r21873)
+++ trunk/ffplay.c	Thu Feb 18 01:19:50 2010	(r21874)
@@ -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);
 



More information about the ffmpeg-cvslog mailing list