summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-12-24 10:49:16 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-12-24 10:49:16 +0100
commit64b66428518942e582cde02107611160505e3570 (patch)
tree3002ac7c0dad9beb26a80f1c515776c66a532005 /sdt.c
parentd8d65c7536c2569854483cb8af7cdc94afea9b44 (diff)
downloadvdr-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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sdt.c b/sdt.c
index de100966..1ed9b32a 100644
--- a/sdt.c
+++ b/sdt.c
@@ -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) {