mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
kodi: add PR6376
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
41c33fe574
commit
5cc415e4d8
23
packages/mediacenter/kodi/patches/kodi-999.98-PR6376.patch
Normal file
23
packages/mediacenter/kodi/patches/kodi-999.98-PR6376.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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);
|
Loading…
x
Reference in New Issue
Block a user