init: Fix initialisation crash
authorJan Schmidt <jan@centricular.com>
Thu, 29 Oct 2020 13:30:52 +0000 (00:30 +1100)
committerJan Schmidt <jan@centricular.com>
Sat, 31 Oct 2020 09:51:27 +0000 (20:51 +1100)
commit180c23108b7912567cbb148005341dc79554122f
treecc83cd44c6779bc8c588529fe593e33889fed894
parente267d0634449159786a5c8ee6cd33f27d601c14d
init: Fix initialisation crash

Fix a case where initialisation fails without setting
the passed-in GError and the caller assumes it will be
set, and add a guard to catch the condition in case it
happens again in the future.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/217>
ges/ges.c
tools/ges-launcher.c