In ffplay, do not open display if -nodisp is set.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 15 Jan 2011 17:21:09 +0000 (17:21 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 15 Jan 2011 17:21:09 +0000 (17:21 +0000)
Fixes issue 1017.

Originally committed as revision 26371 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index f385ad8..1b83bb5 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1242,6 +1242,7 @@ retry:
             }
 
             /* display picture */
+            if (!display_disable)
             video_display(is);
 
             /* update queue size and signal for next picture */
@@ -1260,6 +1261,7 @@ retry:
            than nothing, just to test the implementation */
 
         /* display picture */
+        if (!display_disable)
         video_display(is);
     }
     if (show_status) {