mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
uridownloader: fix crash when download is null
Do no try to unref a NULL download attribute
This commit is contained in:
parent
9e313eb0a7
commit
c62137b832
1 changed files with 4 additions and 2 deletions
|
@ -426,8 +426,10 @@ gst_uri_downloader_fetch_uri_with_range (GstUriDownloader * downloader,
|
|||
ret = gst_element_set_state (downloader->priv->urisrc, GST_STATE_PLAYING);
|
||||
GST_OBJECT_LOCK (downloader);
|
||||
if (ret == GST_STATE_CHANGE_FAILURE) {
|
||||
g_object_unref (downloader->priv->download);
|
||||
downloader->priv->download = NULL;
|
||||
if (downloader->priv->download) {
|
||||
g_object_unref (downloader->priv->download);
|
||||
downloader->priv->download = NULL;
|
||||
}
|
||||
goto quit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue