summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-12-04 10:22:56 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-12-04 10:54:35 -0500
commit057fc558359c63b212d596179cb0a0b658142010 (patch)
tree9749931a6e80c1b9a67b0124e3964a4754e0268e
parent6f07a3af8c13f81346391762dcb1ab44dce08eb7 (diff)
downloadgstreamer-057fc558359c63b212d596179cb0a0b658142010.tar.gz
gst-launch: Fix process return value on error
In case of a run-time error message, the process return value was left unset. This would lead to error not being caught at shell level. https://bugzilla.gnome.org/show_bug.cgi?id=759019
-rw-r--r--tools/gst-launch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 7d80f57909..7c0da04705 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -1111,6 +1111,7 @@ main (int argc, char *argv[])
tfthen = gst_util_get_timestamp ();
caught_error = event_loop (pipeline, TRUE, FALSE, GST_STATE_PLAYING);
+ res = caught_error;
if (eos_on_shutdown && caught_error != ELR_NO_ERROR) {
gboolean ignore_errors;