mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
gst-inspect: Flush stdout before closing stdout FD
Otherwise, last line can be lost.
This commit is contained in:
parent
c3214e8deb
commit
4fbd3baf1e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue