projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4260f8a
)
curlhttpsrc: Don't switch to PAUSED if not URI was specified
author
Edward Hervey
<edward@centricular.com>
Tue, 21 Nov 2017 14:31:05 +0000
(15:31 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Tue, 21 Nov 2017 14:31:05 +0000
(15:31 +0100)
Like for other sources
ext/curl/gstcurlhttpsrc.c
patch
|
blob
|
history
diff --git
a/ext/curl/gstcurlhttpsrc.c
b/ext/curl/gstcurlhttpsrc.c
index
7056477
..
47213c6
100644
(file)
--- a/
ext/curl/gstcurlhttpsrc.c
+++ b/
ext/curl/gstcurlhttpsrc.c
@@
-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);