mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:16:12 +00:00
ges-asset: Don't dereference NULL proxy assets when resolving fails
CID 1346531
This commit is contained in:
parent
4997c455f4
commit
7500fab036
1 changed files with 5 additions and 3 deletions
|
@ -1074,17 +1074,19 @@ ges_asset_request_async (GType extractable_type,
|
||||||
ges_asset_cache_append_task (extractable_type, real_id, task);
|
ges_asset_cache_append_task (extractable_type, real_id, task);
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
case ASSET_PROXIED:
|
case ASSET_PROXIED:{
|
||||||
asset = ges_asset_get_proxy (asset);
|
GESAsset *target = ges_asset_get_proxy (asset);
|
||||||
|
|
||||||
if (asset == NULL) {
|
if (target == NULL) {
|
||||||
GST_ERROR ("Asset %s proxied against an asset (%s) we do not"
|
GST_ERROR ("Asset %s proxied against an asset (%s) we do not"
|
||||||
" have in cache, something massively screwed",
|
" have in cache, something massively screwed",
|
||||||
asset->priv->id, asset->priv->proxied_asset_id);
|
asset->priv->id, asset->priv->proxied_asset_id);
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
asset = target;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case ASSET_NEEDS_RELOAD:
|
case ASSET_NEEDS_RELOAD:
|
||||||
GST_DEBUG_OBJECT (asset, "Asset in cache and needs reload");
|
GST_DEBUG_OBJECT (asset, "Asset in cache and needs reload");
|
||||||
ges_asset_cache_append_task (extractable_type, real_id, task);
|
ges_asset_cache_append_task (extractable_type, real_id, task);
|
||||||
|
|
Loading…
Reference in a new issue