ffplay: flush correct stream after stats update
authorGyan Doshi <ffmpeg@gyani.pro>
Fri, 3 Apr 2020 16:29:31 +0000 (21:59 +0530)
committerGyan Doshi <ffmpeg@gyani.pro>
Sat, 4 Apr 2020 10:31:57 +0000 (16:01 +0530)
Stats and logs are written to stderr, not stdout.

fftools/ffplay.c

index 416ebbf..1beec54 100644 (file)
@@ -1736,7 +1736,7 @@ display:
             else
                 av_log(NULL, AV_LOG_INFO, "%s", buf.str);
 
-            fflush(stdout);
+            fflush(stderr);
             av_bprint_finalize(&buf, NULL);
 
             last_time = cur_time;