From 64b66428518942e582cde02107611160505e3570 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 24 Dec 2009 10:49:16 +0100 Subject: Channel names containing commas are now handled correctly in channels.conf --- sdt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sdt.c') 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) { -- cgit v1.2.3