diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2019-07-11 15:54:27 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2019-07-26 13:48:51 -0400 |
commit | 6f9e6d35866f0e5474a6d84f8046b2fc77c71bd5 (patch) | |
tree | fbc9a686bd8a1432a2f721ffcc7c3c2a70efdd1a /tools | |
parent | c125093bb1785742fc6950d7244427400951ff4e (diff) |
formatter: Enhance error reporting
And add a "loading-error" signal in GESProject so we can report
issue when loading async elements for the timeline.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ges-launcher.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/ges-launcher.c b/tools/ges-launcher.c index 90451c60..74685de6 100644 --- a/tools/ges-launcher.c +++ b/tools/ges-launcher.c @@ -173,6 +173,16 @@ retry: } static void +_project_loading_error_cb (GESProject * project, GESTimeline * timeline, + GError * error, GESLauncher * self) +{ + g_printerr ("Error loading timeline: '%s'\n", error->message); + self->priv->seenerrors = TRUE; + + g_application_quit (G_APPLICATION (self)); +} + +static void _project_loaded_cb (GESProject * project, GESTimeline * timeline, GESLauncher * self) { @@ -256,6 +266,8 @@ _create_timeline (GESLauncher * self, const gchar * serialized_timeline, g_signal_connect (project, "error-loading-asset", G_CALLBACK (_error_loading_asset_cb), self); g_signal_connect (project, "loaded", G_CALLBACK (_project_loaded_cb), self); + g_signal_connect (project, "error-loading", + G_CALLBACK (_project_loading_error_cb), self); self->priv->timeline = GES_TIMELINE (ges_asset_extract (GES_ASSET (project), &error)); |