summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch b/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch
index 1fe9780..d146c27 100644
--- a/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch
+++ b/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch
@@ -798,9 +798,11 @@ index d446299..b1fa971 100644
- codes[NumCodes++] = uchar(n);
- numCodes = NumCodes;
- }
-+ if (!parsing)
++ // unicable: don't read codes again, since there are some "presets"
++ if ((unicable < 0) || (parsing && (unicable >= 0))) {
+ codes[NumCodes] = uchar(n);
-+ ++NumCodes;
++ ++NumCodes;
++ }
t = skipspace(p);
}
else {
@@ -808,7 +810,7 @@ index d446299..b1fa971 100644
return NULL;
}
}
-+ if (parsing)
++ if (parsing || (unicable < 0))
+ numCodes = NumCodes;
return e + 1;
}