curlhttpsrc: Don't switch to PAUSED if not URI was specified
Like for other sources
This commit is contained in:
parent
4260f8a120
commit
b8cb08c319
@ -1259,6 +1259,10 @@ gst_curl_http_src_change_state (GstElement * element, GstStateChange transition)
|
|||||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||||
gst_curl_http_src_ref_multi (source);
|
gst_curl_http_src_ref_multi (source);
|
||||||
break;
|
break;
|
||||||
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||||
|
if (source->uri == NULL)
|
||||||
|
return GST_STATE_CHANGE_FAILURE;
|
||||||
|
break;
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
/* The pipeline has ended, so signal any running request to end. */
|
/* The pipeline has ended, so signal any running request to end. */
|
||||||
gst_curl_http_src_request_remove (source);
|
gst_curl_http_src_request_remove (source);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user