mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
Merge pull request #699 from stefansaraev/vdr-iptv
vdr-iptv: re-add -skip_header_processing.patch
This commit is contained in:
commit
e4903a297f
35
packages/3rdparty/multimedia/vdr-iptv/patches/vdr-iptv-0.5.2-skip_header_processing.patch
vendored
Normal file
35
packages/3rdparty/multimedia/vdr-iptv/patches/vdr-iptv-0.5.2-skip_header_processing.patch
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From c7cd9b614762103a95f3da27783e03ce115d43fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stefan Saraev <stefan@saraev.ca>
|
||||||
|
Date: Sun, 20 May 2012 16:05:51 +0300
|
||||||
|
Subject: [PATCH] vdr-iptv: skip header processing
|
||||||
|
|
||||||
|
---
|
||||||
|
protocolhttp.c | 12 +-----------
|
||||||
|
1 files changed, 1 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/protocolhttp.c b/protocolhttp.c
|
||||||
|
index de50f64..45c5425 100644
|
||||||
|
--- a/protocolhttp.c
|
||||||
|
+++ b/protocolhttp.c
|
||||||
|
@@ -140,17 +140,7 @@ bool cIptvProtocolHttp::ProcessHeaders(void)
|
||||||
|
memset(buf, '\0', sizeof(buf));
|
||||||
|
if (!GetHeaderLine(buf, sizeof(buf), lineLength))
|
||||||
|
return false;
|
||||||
|
- if (!responseFound && sscanf(buf, fmt, &version, &response) != 2) {
|
||||||
|
- error("Expected HTTP header not found\n");
|
||||||
|
- continue;
|
||||||
|
- }
|
||||||
|
- else
|
||||||
|
- responseFound = true;
|
||||||
|
- // Allow only 'OK' and 'Partial Content'
|
||||||
|
- if ((response != 200) && (response != 206)) {
|
||||||
|
- error("Invalid HTTP response (%d): %s\n", response, buf);
|
||||||
|
- return false;
|
||||||
|
- }
|
||||||
|
+ responseFound = true;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.7.2.5
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user