uri-asset: Check that the newly computed URI exist

No the one we know failed!
This commit is contained in:
Thibault Saunier 2014-12-12 12:02:41 +01:00
parent 7c6ad5e3ba
commit dc2f48a726

View file

@ -144,7 +144,7 @@ _request_id_update (GESAsset * self, gchar ** proposed_new_id, GError * error)
GFile *new_file = g_file_get_child (new_parent, basename); GFile *new_file = g_file_get_child (new_parent, basename);
/* FIXME Handle the GCancellable */ /* FIXME Handle the GCancellable */
if (g_file_query_exists (file, NULL)) { if (g_file_query_exists (new_file, NULL)) {
*proposed_new_id = g_file_get_uri (new_file); *proposed_new_id = g_file_get_uri (new_file);
GST_DEBUG_OBJECT (self, "Proposing path: %s as proxy", GST_DEBUG_OBJECT (self, "Proposing path: %s as proxy",
*proposed_new_id); *proposed_new_id);