From 1d15b020fc59912e53733be0c5cff1ef6ecbf6ef Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ao2@ao2.it>
Date: Mon, 31 Jul 2017 12:54:36 +0200
Subject: [PATCH] gst-screencast.sh: flush on EOS to make videos usable in
 video editors

---
 shell/gst-screencast.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/gst-screencast.sh b/shell/gst-screencast.sh
index e9c03d0..e601a62 100755
--- a/shell/gst-screencast.sh
+++ b/shell/gst-screencast.sh
@@ -116,7 +116,7 @@ else
     AUDIO_PIPELINE="pulsesrc ! audioconvert ! audio/x-raw,rate=44100,channels=2 ! queue ! mux."
   fi
 
-  gst-launch-1.0 -v \
+  gst-launch-1.0 -v -e \
     matroskamux name=mux ! filesink location="$FILENAME" \
     ximagesrc use-damage=0 show-pointer=$SHOW_POINTER $XIMAGESRC_ARGS ! video/x-raw,framerate=25/1 ! \
     videoconvert ! videorate ! $VIDEO_CODEC ! queue ! mux. \
-- 
2.1.4