mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
examples/rtsp: clear RANGE again after use
Fixes #2106 Reported-by: youngchopin on github
This commit is contained in:
parent
914f4ed279
commit
ed22d8654b
@ -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_RANGE, range);
|
||||||
my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY);
|
my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY);
|
||||||
my_curl_easy_perform(curl);
|
my_curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* switch off using range again */
|
||||||
|
my_curl_easy_setopt(curl, CURLOPT_RANGE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user