]> granicus.if.org Git - curl/commitdiff
examples/rtsp: clear RANGE again after use
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Nov 2017 07:06:44 +0000 (08:06 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Nov 2017 07:06:44 +0000 (08:06 +0100)
Fixes #2106
Reported-by: youngchopin on github
docs/examples/rtsp.c

index 5c66aa6e5bded19922461b62362bd5ee2f768962..3035e3fbc0f462f33aa1f7b52b991c9c8475a2a6 100644 (file)
@@ -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);
 }