mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
uridownloader: Reset cancelled state after fetching an URI
Otherwise it will never ever be able to fetch anything after an error until the user resets it manually.
This commit is contained in:
parent
591598da48
commit
3726c00b95
1 changed files with 3 additions and 0 deletions
|
@ -478,9 +478,12 @@ quit:
|
||||||
"Failed to download '%s'", uri);
|
"Failed to download '%s'", uri);
|
||||||
} else {
|
} else {
|
||||||
g_propagate_error (err, downloader->priv->err);
|
g_propagate_error (err, downloader->priv->err);
|
||||||
|
downloader->priv->err = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
downloader->priv->cancelled = FALSE;
|
||||||
|
|
||||||
g_mutex_unlock (&downloader->priv->download_lock);
|
g_mutex_unlock (&downloader->priv->download_lock);
|
||||||
return download;
|
return download;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue