api: Fix plugin feature unref

This commit is contained in:
Rafał Dzięgiel
2021-08-24 20:52:18 +02:00
parent f31682624f
commit 9b53a3e387

View File

@@ -3250,7 +3250,7 @@ gst_clapper_set_feature_rank_versioned (const gchar * name, guint rank,
if (!feature) { if (!feature) {
GST_DEBUG ("Cannot change rank of unavailable feature: %s", name); GST_DEBUG ("Cannot change rank of unavailable feature: %s", name);
goto out; return res;
} }
if (gst_plugin_feature_check_version (feature, min_major, min_minor, min_micro)) { if (gst_plugin_feature_check_version (feature, min_major, min_minor, min_micro)) {
guint old_rank = gst_plugin_feature_get_rank (feature); guint old_rank = gst_plugin_feature_get_rank (feature);
@@ -3261,7 +3261,6 @@ gst_clapper_set_feature_rank_versioned (const gchar * name, guint rank,
GST_DEBUG ("Feature %s is at older version then required", name); GST_DEBUG ("Feature %s is at older version then required", name);
} }
out:
gst_object_unref (feature); gst_object_unref (feature);
return res; return res;
} }