summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-23 08:06:44 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-23 08:06:44 +0100
commited22d8654b4e010e6eccec395e9ea93ac8ef0844 (patch)
tree78a4fb668cc0b526573f3c1a5e8be03e2c90ceec
parent914f4ed279ddc7b6f3d5b0ddaa540e1779c3cfa2 (diff)
downloadcurl-ed22d8654b4e010e6eccec395e9ea93ac8ef0844.tar.gz
examples/rtsp: clear RANGE again after use
Fixes #2106 Reported-by: youngchopin on github
-rw-r--r--docs/examples/rtsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/examples/rtsp.c b/docs/examples/rtsp.c
index 5c66aa6e5..3035e3fbc 100644
--- a/docs/examples/rtsp.c
+++ b/docs/examples/rtsp.c
@@ -129,6 +129,9 @@ static void rtsp_play(CURL *curl, const char *uri, const char *range)
my_curl_easy_setopt(curl, CURLOPT_RANGE, range);
my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY);
my_curl_easy_perform(curl);
+
+ /* switch off using range again */
+ my_curl_easy_setopt(curl, CURLOPT_RANGE, NULL);
}