mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-14 03:54:11 +00:00
curlhttpsrc: Don't switch to PAUSED if not URI was specified
Like for other sources
This commit is contained in:
parent
4260f8a120
commit
b8cb08c319
1 changed files with 4 additions and 0 deletions
|
@ -1259,6 +1259,10 @@ gst_curl_http_src_change_state (GstElement * element, GstStateChange transition)
|
|||
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||
gst_curl_http_src_ref_multi (source);
|
||||
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:
|
||||
/* The pipeline has ended, so signal any running request to end. */
|
||||
gst_curl_http_src_request_remove (source);
|
||||
|
|
Loading…
Reference in a new issue