diff options
author | paul.kim <paul.hyunil@lge.com> | 2017-03-13 18:14:12 +0900 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-11-10 10:24:56 +0100 |
commit | 6a48db94aa52fed743f975ea7dc4e0dca6b70c5d (patch) | |
tree | c027aef23605f13253123cf43c29bcff045a1959 | |
parent | a53c01376321ac185a707729eb7a309c22f46352 (diff) | |
download | gstreamer-plugins-good-6a48db94aa52fed743f975ea7dc4e0dca6b70c5d.tar.gz |
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
-rw-r--r-- | ext/soup/gstsouphttpsrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 288b609f1..52c1b8182 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -1456,7 +1456,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 |