]> git.sesse.net Git - ffmpeg/commitdiff
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 416ebbf7df49d5cb69c7264f6eca085398dc2f32..1beec542933db78f9358c2fee71b12ee67e240c5 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;