From 8e8afa82cbb629bd2a95eba1cdf47f65dd62a6d5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 18 Oct 2016 12:09:56 +0200 Subject: curl: set INTERLEAVEDATA too As otherwise the callback could be called with a NULL pointer when RTSP data is provided. --- src/tool_operate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tool_operate.c') diff --git a/src/tool_operate.c b/src/tool_operate.c index 54a57a03c..88427ce4c 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -800,6 +800,7 @@ static CURLcode operate_do(struct GlobalConfig *global, /* where to store */ my_setopt(curl, CURLOPT_WRITEDATA, &outs); + my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs); if(metalink || !config->use_metalink) /* what call to write */ my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); -- cgit v1.2.3