mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
commit
0d43b514ba
@ -1,23 +0,0 @@
|
|||||||
From 3eec72d4fd109e9f153a375138c1a997bcf86d9a Mon Sep 17 00:00:00 2001
|
|
||||||
From: wsnipex <wsnipex@a1.net>
|
|
||||||
Date: Sun, 8 Feb 2015 14:15:49 +0100
|
|
||||||
Subject: [PATCH] [curl] don't return 0 in the write callback, it causes ftp
|
|
||||||
content lenght requests to fail
|
|
||||||
|
|
||||||
---
|
|
||||||
xbmc/filesystem/CurlFile.cpp | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp
|
|
||||||
index 7d68dab..e67d951 100644
|
|
||||||
--- a/xbmc/filesystem/CurlFile.cpp
|
|
||||||
+++ b/xbmc/filesystem/CurlFile.cpp
|
|
||||||
@@ -100,7 +100,7 @@ extern "C" size_t write_callback(char *buffer,
|
|
||||||
size_t nitems,
|
|
||||||
void *userp)
|
|
||||||
{
|
|
||||||
- if(userp == NULL) return 0;
|
|
||||||
+ if(userp == NULL) return size * nitems;
|
|
||||||
|
|
||||||
CCurlFile::CReadState *state = (CCurlFile::CReadState *)userp;
|
|
||||||
return state->WriteCallback(buffer, size, nitems);
|
|
@ -25,7 +25,7 @@
|
|||||||
# there: http://forum.xbmc.org/showthread.php?tid=177557
|
# there: http://forum.xbmc.org/showthread.php?tid=177557
|
||||||
|
|
||||||
PKG_NAME="curl"
|
PKG_NAME="curl"
|
||||||
PKG_VERSION="7.40.0"
|
PKG_VERSION="7.37.1"
|
||||||
PKG_REV="1"
|
PKG_REV="1"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="MIT"
|
PKG_LICENSE="MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user