gst-inspect: Flush stdout before closing stdout FD
authorZeeshan Ali <zeenix@collabora.co.uk>
Tue, 30 Oct 2018 13:52:15 +0000 (14:52 +0100)
committerZeeshan Ali <zeenix@collabora.co.uk>
Tue, 30 Oct 2018 13:53:00 +0000 (14:53 +0100)
Otherwise, last line can be lost.

tools/gst-inspect.c

index 6194652..154d0a0 100644 (file)
@@ -1951,6 +1951,7 @@ main (int argc, char *argv[])
   }
 
 #ifdef G_OS_UNIX
+  fflush (stdout);
   /* So that the pipe we create in redirect_stdout() is closed */
   close (STDOUT_FILENO);
   wait (NULL);