From 2de5984300c4c958f10ff409cd6e5c2580c8c960 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Wed, 22 Nov 2023 10:17:43 +0000 Subject: [PATCH] ges: effect: Report asset request errors Part-of: --- subprojects/gst-editing-services/ges/ges-effect.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-editing-services/ges/ges-effect.c b/subprojects/gst-editing-services/ges/ges-effect.c index b26c1c91ca..f6110fb03a 100644 --- a/subprojects/gst-editing-services/ges/ges-effect.c +++ b/subprojects/gst-editing-services/ges/ges-effect.c @@ -381,8 +381,16 @@ GESEffect * ges_effect_new (const gchar * bin_description) { GESEffect *effect; + GError *error = NULL; GESAsset *asset = ges_asset_request (GES_TYPE_EFFECT, - bin_description, NULL); + bin_description, &error); + + if (error != NULL) { + GST_ERROR ("Error requesting asset with description \"%s\": %s", + bin_description, error->message); + g_error_free (error); + /* fall-through */ + } g_return_val_if_fail (asset, NULL);