Patch to fix SVDR LSTR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux