From da637d3ca7ab8c8e834379b78f673cebf320f450 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Jul 2024 22:43:45 -0300 Subject: [PATCH] Update README --- src/m3u8download.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/m3u8download.c b/src/m3u8download.c index 67168f5..6be4951 100644 --- a/src/m3u8download.c +++ b/src/m3u8download.c @@ -249,6 +249,13 @@ static int m3u8download_addqueue( goto end; } + code = curl_easy_setopt(download.curl, CURLOPT_SHARE, root->playlist.multi_client.curl_share); + + if (code != CURLE_OK) { + err = M3U8ERR_CURL_SETOPT_FAILURE; + goto end; + } + if (byterange.length > 0) { const biguint_t start = byterange.offset; const biguint_t end = (byterange.length + start) - 1;