mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
uridownloader: Set source state to NULL if downloading failed for whatever reason
This commit is contained in:
parent
70350bd89e
commit
cfc32a1ec4
1 changed files with 4 additions and 1 deletions
|
@ -518,7 +518,10 @@ quit:
|
|||
|
||||
/* set the element state to NULL */
|
||||
GST_OBJECT_UNLOCK (downloader);
|
||||
gst_element_set_state (urisrc, GST_STATE_READY);
|
||||
if (download == NULL)
|
||||
gst_element_set_state (urisrc, GST_STATE_NULL);
|
||||
else
|
||||
gst_element_set_state (urisrc, GST_STATE_READY);
|
||||
GST_OBJECT_LOCK (downloader);
|
||||
gst_element_set_bus (urisrc, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue