uridownloader: Set source state to NULL if downloading failed for whatever reason
This commit is contained in:
parent
70350bd89e
commit
cfc32a1ec4
@ -518,6 +518,9 @@ quit:
|
||||
|
||||
/* set the element state to NULL */
|
||||
GST_OBJECT_UNLOCK (downloader);
|
||||
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…
x
Reference in New Issue
Block a user