diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-09-01 13:03:27 +0200 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-09-01 13:03:27 +0200 |
commit | 14fad6e9703de4ab451a1ef9ae182a5ede6bff96 (patch) | |
tree | 3fa6905d19a76b903f4191dc19e2abb3e1fd6713 | |
parent | 623300fce53e61679f8d946e8afad6bed327f5c4 (diff) | |
download | vdr-plugin-dynamite-14fad6e9703de4ab451a1ef9ae182a5ede6bff96.tar.gz vdr-plugin-dynamite-14fad6e9703de4ab451a1ef9ae182a5ede6bff96.tar.bz2 |
adjust parsing diseqc code-sequence in unicable patch
-rw-r--r-- | patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch | 8 |
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; } |