diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-12-24 10:49:16 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-12-24 10:49:16 +0100 |
commit | 64b66428518942e582cde02107611160505e3570 (patch) | |
tree | 3002ac7c0dad9beb26a80f1c515776c66a532005 /sdt.c | |
parent | d8d65c7536c2569854483cb8af7cdc94afea9b44 (diff) | |
download | vdr-64b66428518942e582cde02107611160505e3570.tar.gz vdr-64b66428518942e582cde02107611160505e3570.tar.bz2 |
Channel names containing commas are now handled correctly in channels.conf
Diffstat (limited to 'sdt.c')
-rw-r--r-- | sdt.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sdt.c 2.3 2009/12/13 11:54:33 kls Exp $ + * $Id: sdt.c 2.4 2009/12/23 16:02:47 kls Exp $ */ #include "sdt.h" @@ -72,6 +72,11 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length strcpy(ShortNameBuf, skipspace(p)); } } + // Avoid ',' in short name (would cause trouble in channels.conf): + for (char *p = ShortNameBuf; *p; p++) { + if (*p == ',') + *p = '.'; + } sd->providerName.getText(ProviderNameBuf, sizeof(ProviderNameBuf)); char *pp = compactspace(ProviderNameBuf); if (channel) { |