diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-10-18 12:09:56 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-10-18 12:09:56 +0200 |
commit | 8e8afa82cbb629bd2a95eba1cdf47f65dd62a6d5 (patch) | |
tree | 2ab752dcf557cfd6b78d0d5fe173c4ee964adbbb | |
parent | 9a509680f6b9f7d7fd2ef99380e2460a3973f31d (diff) |
curl: set INTERLEAVEDATA too
As otherwise the callback could be called with a NULL pointer when RTSP
data is provided.
-rw-r--r-- | src/tool_operate.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |