mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
curlhttpsrc: Post an error message if no URI was set
Like for other sources
This commit is contained in:
parent
69d794b004
commit
d4afba794a
1 changed files with 4 additions and 1 deletions
|
@ -1262,8 +1262,11 @@ gst_curl_http_src_change_state (GstElement * element, GstStateChange transition)
|
|||
gst_curl_http_src_ref_multi (source);
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
if (source->uri == NULL)
|
||||
if (source->uri == NULL) {
|
||||
GST_ELEMENT_ERROR (element, RESOURCE, OPEN_READ, (_("No URL set.")),
|
||||
("Missing URL"));
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
}
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||
/* The pipeline has ended, so signal any running request to end. */
|
||||
|
|
Loading…
Reference in a new issue