summaryrefslogtreecommitdiffstats
path: root/abs/extra/kodi/hdhr_uPnP.diff
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-09-21 13:37:07 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-09-21 13:37:07 (GMT)
commitceb6d3594fbd672587a1f15618427be552654241 (patch)
tree7ffba63376e5a196c3db3f83cc7af17db9899ff5 /abs/extra/kodi/hdhr_uPnP.diff
parentcf309ccb9e436f2b5e8ba8bb9e36df9307c1aa39 (diff)
downloadlinhes_pkgbuild-ceb6d3594fbd672587a1f15618427be552654241.zip
linhes_pkgbuild-ceb6d3594fbd672587a1f15618427be552654241.tar.gz
linhes_pkgbuild-ceb6d3594fbd672587a1f15618427be552654241.tar.bz2
kodi: fix hdhr uPnP issue. closes #998
Diffstat (limited to 'abs/extra/kodi/hdhr_uPnP.diff')
-rw-r--r--abs/extra/kodi/hdhr_uPnP.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/extra/kodi/hdhr_uPnP.diff b/abs/extra/kodi/hdhr_uPnP.diff
new file mode 100644
index 0000000..7ad89e1
--- /dev/null
+++ b/abs/extra/kodi/hdhr_uPnP.diff
@@ -0,0 +1,16 @@
+diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp
+index c308649..25af47e 100644
+--- a/xbmc/filesystem/CurlFile.cpp
++++ b/xbmc/filesystem/CurlFile.cpp
+@@ -1528,8 +1528,9 @@ bool CCurlFile::CReadState::FillBuffer(unsigned int want)
+ msg->data.result == CURLE_RECV_ERROR) &&
+ !m_bFirstLoop)
+ CURLresult = msg->data.result;
+- else if ( (msg->data.result == CURLE_HTTP_RANGE_ERROR ||
+- httpCode == 416 /* = Requested Range Not Satisfiable */) &&
++ else if ( (msg->data.result == CURLE_HTTP_RANGE_ERROR ||
++ httpCode == 416 /* = Requested Range Not Satisfiable */ ||
++ httpCode == 406 /* = Not Acceptable (fixes issues with non compliant HDHomerun servers */) &&
+ m_bFirstLoop &&
+ m_filePos == 0 &&
+ m_sendRange)