Message ID | d74oeq$m4f$1@video.local.muempf.de |
---|---|
State | New |
Headers |
Received: from wp012.webpack.hosteurope.de ([80.237.132.19]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DbJt9-00037C-4S for vdr@linuxtv.org; Thu, 26 May 2005 17:03:11 +0200 Received: by wp012.webpack.hosteurope.de running Exim 4.43 using esmtpsa (TLSv1:DES-CBC3-SHA:168) from ip102.53.1411d-cud12k-02.ish.de ([62.143.53.102] helo=video.local.muempf.de) id 1DbJsz-0000eL-9w; Thu, 26 May 2005 17:03:01 +0200 Received: from video.local.muempf.de (localhost [127.0.0.1]) by video.local.muempf.de (8.12.6/8.12.6/SuSE Linux 0.6) with ESMTP id j4QF2ooF002062 for <vdr@linuxtv.org>; Thu, 26 May 2005 17:02:50 +0200 Received: (from news@localhost) by video.local.muempf.de (8.12.6/8.12.6/Submit) id j4QF2oKF002061 for vdr@linuxtv.org; Thu, 26 May 2005 17:02:50 +0200 To: vdr@linuxtv.org Path: not-for-mail From: s.huelswitt@gmx.de (Stefan Huelswitt) Newsgroups: local.linux.vdr Date: Thu, 26 May 2005 15:02:50 +0000 (UTC) Organization: Home, sweet home Lines: 28 Sender: nathan@gmx.de Message-ID: <d74oeq$m4f$1@video.local.muempf.de> NNTP-Posting-Host: master.local.muempf.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: video.local.muempf.de 1117119770 22671 192.168.1.1 (26 May 2005 15:02:50 GMT) X-Complaints-To: s.huelswitt@gmx.de NNTP-Posting-Date: Thu, 26 May 2005 15:02:50 +0000 (UTC) X-Newsreader: knews 1.0b.1 Subject: [vdr] Patch to fix SVDR LSTR X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR <vdr@linuxtv.org> List-Id: Klaus Schmidinger's VDR <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=unsubscribe> List-Archive: <http://www.linuxtv.org/pipermail/vdr> List-Post: <mailto:vdr@linuxtv.org> List-Help: <mailto:vdr-request@linuxtv.org?subject=help> List-Subscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=subscribe> X-List-Received-Date: Thu, 26 May 2005 15:03:11 -0000 Status: O X-Status: X-Keywords: X-UID: 2493 |
Commit Message
Stefan Huelswitt
May 26, 2005, 3:02 p.m. UTC
Hi, I found that recordings with a name ending in a space are not correctly reported by the LSTR command. This is because after creating the output line any trailing spaces are stripped. Recording names with a trailing space are e.g. created by VDR itselfs for repeating timers when there is not EPG subtitle available. This patch fixes the problem: Regards.
Comments
Stefan Huelswitt wrote: > Hi, > > I found that recordings with a name ending in a space are not > correctly reported by the LSTR command. > This is because after creating the output line any trailing > spaces are stripped. > Recording names with a trailing space are e.g. created by VDR > itselfs for repeating timers when there is not EPG subtitle > available. > > This patch fixes the problem: > > --- recording.c.orig 2005-05-07 17:25:15.000000000 +0200 > +++ recording.c 2005-05-26 16:57:44.000000000 +0200 > @@ -513,7 +513,6 @@ > Delimiter, > s); > // let's not display a trailing '~': > - stripspace(titleBuffer); > s = &titleBuffer[strlen(titleBuffer) - 1]; > if (*s == '~') > *s = 0; This would mean that the '~' appears in the replay progress display, and avoiding that was the original intent of this. I'll make this if (!NewIndicator) stripspace(titleBuffer); which uses the fact that NewIndicator is only true when this function called from the LSTR command, but I guess that's ok. Klaus
On 29 May 2005 Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> wrote: > Stefan Huelswitt wrote: >> >> I found that recordings with a name ending in a space are not >> correctly reported by the LSTR command. >> This is because after creating the output line any trailing >> spaces are stripped. >> Recording names with a trailing space are e.g. created by VDR >> itselfs for repeating timers when there is not EPG subtitle >> available. >> >> This patch fixes the problem: [...] > > This would mean that the '~' appears in the replay progress display, > and avoiding that was the original intent of this. IMHO this isn't a problem, if the name ends with a space it's displayed with a space. Otherwise the progress is misleading. But if you want to obmit the ~ in the display, this should IMO be fixed in the menu class itself and not in the base recording class (rather than adding other obscure side effect there). Regards.
--- recording.c.orig 2005-05-07 17:25:15.000000000 +0200 +++ recording.c 2005-05-26 16:57:44.000000000 +0200 @@ -513,7 +513,6 @@ Delimiter, s); // let's not display a trailing '~': - stripspace(titleBuffer); s = &titleBuffer[strlen(titleBuffer) - 1]; if (*s == '~') *s = 0;