summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-10-30 14:52:15 +0100
committerZeeshan Ali <zeenix@collabora.co.uk>2018-10-30 14:53:00 +0100
commit4fbd3baf1ea7685f45ee843fc98a94188650b308 (patch)
tree35751bd389f01e6a005f3cc437ccc004f85199d8 /tools
parentc3214e8deb6ced65ce5fc4a2941919011dc0e9c6 (diff)
downloadgstreamer-4fbd3baf1ea7685f45ee843fc98a94188650b308.tar.gz
gst-inspect: Flush stdout before closing stdout FD
Otherwise, last line can be lost.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-inspect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 6194652da7..154d0a0552 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -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);