mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
souphttpsrc: Remove range header when seek to 0
This fixes the previous range header is remained if seek to 0 is attempted. https://bugzilla.gnome.org/show_bug.cgi?id=779957
This commit is contained in:
parent
770bb07f30
commit
b4edfb5998
1 changed files with 2 additions and 1 deletions
|
@ -1580,7 +1580,8 @@ gst_soup_http_src_do_request (GstSoupHTTPSrc * src, const gchar * method)
|
|||
if (src->msg && src->request_position > 0) {
|
||||
gst_soup_http_src_add_range_header (src, src->request_position,
|
||||
src->stop_position);
|
||||
}
|
||||
} else if (src->msg && src->request_position == 0)
|
||||
soup_message_headers_remove (src->msg->request_headers, "Range");
|
||||
|
||||
/* add_range_header() has the side effect of setting read_position to
|
||||
* the requested position. This *needs* to be set regardless of having
|
||||
|
|
Loading…
Reference in a new issue