1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

examples/rtsp: clear RANGE again after use

Fixes #2106
Reported-by: youngchopin on github
This commit is contained in:
Daniel Stenberg 2017-11-23 08:06:44 +01:00
parent 914f4ed279
commit ed22d8654b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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);
}