CURLOPT_RTSP_SESSION_ID.md: expand the comment

Enhance the example code

Closes #21363
This commit is contained in:
Daniel Stenberg 2026-04-18 22:03:22 +02:00
parent d129ff355d
commit 1cc683c859
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -56,7 +56,7 @@ int main(void)
CURL *curl = curl_easy_init();
if(curl) {
CURLcode result;
char *prev_id = "old"; /* saved from before somehow */
char *prev_id = "old"; /* previously retrieved RTSP session ID */
curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
curl_easy_setopt(curl, CURLOPT_RTSP_SESSION_ID, prev_id);
result = curl_easy_perform(curl);