From 4127407823579b2ecee99da0729079472f5fe9ab Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 4 Dec 2015 10:22:56 -0500 Subject: [PATCH] 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 --- tools/gst-launch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gst-launch.c b/tools/gst-launch.c index a522a5b..859f9db 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -1113,6 +1113,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; -- 2.7.4