From patchwork Wed Oct 5 18:17:24 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schwarzott X-Patchwork-Id: 12055 Received: from epz01.nefonline.de ([212.204.66.1]) by www.linuxtv.org with esmtp (Exim 4.50) id 1ENDpv-0007CF-Ad for vdr@linuxtv.org; Wed, 05 Oct 2005 20:17:51 +0200 Received: from dsl01.83.171.151.115.nefkom.net (DSL01.83.171.151.115.NEFkom.net [83.171.151.115]) by epz01.nefonline.de (NEFkom Mailservice) with SMTP id j95IHoP22365 for ; Wed, 5 Oct 2005 20:17:50 +0200 From: Matthias Schwarzott To: "Klaus Schmidinger's VDR" Subject: Re: [vdr] SourceCaps patch for VDR 1.3.32. Date: Wed, 5 Oct 2005 20:17:24 +0200 User-Agent: KMail/1.8.1 References: <43246CE1.4050300@icem.com> <002101c5c99f$3cade6e0$0147a8c0@test> In-Reply-To: <002101c5c99f$3cade6e0$0147a8c0@test> MIME-Version: 1.0 Message-Id: <200510052017.26481.zzam@gmx.de> X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 18:17:51 -0000 Status: O X-Status: X-Keywords: X-UID: 5340 On Wednesday 05 October 2005 13:23, Frank wrote: > Hello, > > I have 2 DVB cards in my VDR system > > 1) FF card for Astra 19.2E and Eutelsat 13.0E. > > 2) budget card for Astra 19.2E > > > I am using the following entries for that in my setup.conf: > > > > SourceCaps = 1 S19.2E S13.0E > > SourceCaps = 2 S19.2E > > With vdr 1.3.22 - included patch for vdr 1.3.18 - sourcecaps-patch works > fine (only the automatic scan for new channels produced mistakes). > > Now i have tested this patch with vdr 1.3.34, but the first entry of > SourceCaps in setup.conf will be ignored and is deleted after shutdown vdr. > > Any suggestions? > Hi! I had the same problem and now found out that old sourcecaps patches changed cSource::fromString with attached patch, which is missing in newest sourcecaps-patch. With it applied everything works as expected. Matthias diff -Nur vdr-1.3.21/sources.c vdr-1.3.21-SC/sources.c --- vdr-1.3.21/sources.c 2004-12-26 12:58:52.000000000 +0100 +++ vdr-1.3.21-SC/sources.c 2005-02-16 00:29:02.652355896 +0100 @@ -68,7 +68,7 @@ int pos = 0; bool dot = false; bool neg = false; - while (*++s) { + while (*++s && !isblank(*s)) { switch (toupper(*s)) { case '0' ... '9': pos *= 10; pos += *s - '0';