mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
souphttpsrc: check if request was cancelled when sending message
It might be that the request was aborted by the application and we can return immediatelly
This commit is contained in:
parent
075a6260fd
commit
325741d37d
1 changed files with 4 additions and 0 deletions
|
@ -1392,6 +1392,10 @@ gst_soup_http_src_send_message (GstSoupHTTPSrc * src)
|
|||
/* FIXME We are ignoring the GError here, might be useful to debug */
|
||||
src->input_stream =
|
||||
soup_session_send (src->session, src->msg, src->cancellable, NULL);
|
||||
|
||||
if (g_cancellable_is_cancelled (src->cancellable))
|
||||
return GST_FLOW_FLUSHING;
|
||||
|
||||
gst_soup_http_src_got_headers (src, src->msg);
|
||||
if (src->ret != GST_FLOW_OK) {
|
||||
return src->ret;
|
||||
|
|
Loading…
Reference in a new issue