GNOME Bugzilla – Bug 712300
gst-launch: exits with 0 error code even after an error occurred
Last modified: 2013-11-26 11:11:57 UTC
In case of fatal errors like a pipeline refusing to pre-roll, it would be nice to return an exit code. This would be quite helpful especially when git bisecting :) I'll attach a simple patch.
Created attachment 259806 [details] [review] gst-launch: exit an error code when the pipeline failed to pre-roll
Comment on attachment 259806 [details] [review] gst-launch: exit an error code when the pipeline failed to pre-roll Generally makes sense, but there seem to be more places of caught_error=... that don't propagate into res!=0. Could you add those too? :)
Created attachment 260449 [details] [review] gst-launch: exit with an error code when an error occured If the pipeline failed to pre-roll or the user interrupted the execution then set the exit code to a positive value.
commit 6e4cab65418bb5b16fe6ae31b3d79e5d535cbff5 Author: Philippe Normand <philn@igalia.com> Date: Thu Nov 14 15:32:59 2013 +0100 gst-launch: exit with an error code when an error occured If the pipeline failed to pre-roll or the user interrupted the execution then set the exit code to a positive value. https://bugzilla.gnome.org/show_bug.cgi?id=712300