asset: Do not take an extra ref on asset when already initialized

The task already has a ref so this one doesn't make sense and leads to leaks
This commit is contained in:
Thibault Saunier 2019-04-15 17:03:49 -04:00
parent 2d8be79cb7
commit 6a0f2358ce

View file

@ -1152,8 +1152,6 @@ ges_asset_request_async (GType extractable_type,
while (TRUE) {
switch (asset->priv->state) {
case ASSET_INITIALIZED:
gst_object_ref (asset);
GST_DEBUG_OBJECT (asset, "Asset in cache and initialized, "
"using it");