for (tmp = priv->formatters; tmp; tmp = tmp->next) {
if (tmp->data == formatter) {
gst_object_unref (formatter);
- priv->formatters = g_list_remove_link (priv->formatters, tmp);
+ priv->formatters = g_list_delete_link (priv->formatters, tmp);
return;
}
&new_id);
if (new_id) {
- if (ges_asset_set_proxy (asset, new_id))
- return new_id;
- else
+ if (!ges_asset_set_proxy (asset, new_id)) {
g_free (new_id);
+ new_id = NULL;
+ }
}
- return NULL;
+ return new_id;
}
static void
possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, project);
g_free (possible_id);
+ g_error_free (error);
return;
}