From d83ad4379e1fe61ae2cccc780a5e2e2c3eba7bfd Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 28 May 2025 11:30:05 +0200 Subject: [PATCH] asset: Do not warn on `ges_asset_request` for UriClipAsset It is a common pattern to request UriClip asset sync to check if it is in the cache and it is not a problem. Part-of: --- subprojects/gst-editing-services/ges/ges-asset.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-editing-services/ges/ges-asset.c b/subprojects/gst-editing-services/ges/ges-asset.c index 6b60afee1a..4ac8139d89 100644 --- a/subprojects/gst-editing-services/ges/ges-asset.c +++ b/subprojects/gst-editing-services/ges/ges-asset.c @@ -1330,8 +1330,11 @@ ges_asset_request (GType extractable_type, const gchar * id, GError ** error) asset = g_initable_new (asset_type, NULL, error, "id", real_id, "extractable-type", extractable_type, NULL); - } else { - GST_INFO ("Tried to create an Asset for type %s but no ->init method", + if (!asset) + GST_WARNING ("Unable to create asset for %s(->%s) for type %s", + id, real_id, g_type_name (asset_type)); + } else if (!g_type_is_a (extractable_type, GES_TYPE_URI_CLIP)) { + GST_WARNING ("Tried to create an Asset for type %s but no ->init method", g_type_name (extractable_type)); } g_type_class_unref (klass);