summaryrefslogtreecommitdiff
path: root/patches/vdr-1.3.6-incompletesections.diff
diff options
context:
space:
mode:
authorschmirl <schmirl>2008-04-07 14:27:27 +0000
committerschmirl <schmirl>2008-04-07 14:27:27 +0000
commitf51d6eb2dfb128a29db34b05d9b92a9633dd5b29 (patch)
tree328eeeb9761d13aede43a94598af3ffaedc9e202 /patches/vdr-1.3.6-incompletesections.diff
parent71cc16a1eb1774f9f20f8eed03b17af3e8691edc (diff)
downloadvdr-plugin-streamdev-f51d6eb2dfb128a29db34b05d9b92a9633dd5b29.tar.gz
vdr-plugin-streamdev-f51d6eb2dfb128a29db34b05d9b92a9633dd5b29.tar.bz2
- removed legacy code for pre VDR 1.4
- dropped patches for pre VDR 1.4
Diffstat (limited to 'patches/vdr-1.3.6-incompletesections.diff')
-rw-r--r--patches/vdr-1.3.6-incompletesections.diff22
1 files changed, 0 insertions, 22 deletions
diff --git a/patches/vdr-1.3.6-incompletesections.diff b/patches/vdr-1.3.6-incompletesections.diff
deleted file mode 100644
index a58a121..0000000
--- a/patches/vdr-1.3.6-incompletesections.diff
+++ /dev/null
@@ -1,22 +0,0 @@
---- vdr-1.3.6/sections.c 2004-02-07 17:51:57.000000000 +0200
-+++ sections.c 2004-03-21 18:34:47.000000000 +0200
-@@ -185,11 +185,17 @@
- if (fh) {
- // Read section data:
- unsigned char buf[4096]; // max. allowed size for any EIT section
-- int r = safe_read(fh->handle, buf, sizeof(buf));
-+ struct stat statbuf;
-+ int st = fstat(fh->handle, &statbuf);
-+ int ispipe = (st == 0 && !S_ISCHR(statbuf.st_mode));
-+ /*printf("ispipe %d\n", ispipe);*/
-+ int r = safe_read(fh->handle, buf, ispipe ? 3 : sizeof(buf));
- if (!DeviceHasLock)
- continue; // we do the read anyway, to flush any data that might have come from a different transponder
-- if (r > 3) { // minimum number of bytes necessary to get section length
-+ if (r >= 3) { // minimum number of bytes necessary to get section length
- int len = (((buf[1] & 0x0F) << 8) | (buf[2] & 0xFF)) + 3;
-+ if (ispipe)
-+ r += safe_read(fh->handle, buf+3, len-3);
- if (len == r) {
- // Distribute data to all attached filters:
- int pid = fh->filterData.pid;