summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorpaul.kim <paul.hyunil@lge.com>2017-03-13 18:14:12 +0900
committerEdward Hervey <bilboed@bilboed.com>2017-11-10 10:22:36 +0100
commitb4edfb5998a7d9cc28e245ee4fe92720218450f1 (patch)
tree4027661c13cf2262c9e50738b3c975998412abce /ext
parent770bb07f3059a529a54a3fa3521da641afe25c5e (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/soup/gstsouphttpsrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c
index ff64d71c9..975692440 100644
--- a/ext/soup/gstsouphttpsrc.c
+++ b/ext/soup/gstsouphttpsrc.c
@@ -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