summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-17 17:32:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-17 17:32:22 +0100
commit1d5c378d20d004f80f2f2110f139e6960a520f61 (patch)
tree80abc1a7ef26518bf4f7869888405da163ff6723 /sdt.c
parentb21d2c4f12e9006e4b810b4f47d9fe931196bf93 (diff)
downloadvdr-1d5c378d20d004f80f2f2110f139e6960a520f61.tar.gz
vdr-1d5c378d20d004f80f2f2110f139e6960a520f61.tar.bz2
Excess blanks in channel names read from the SDT are now removed
Diffstat (limited to 'sdt.c')
-rw-r--r--sdt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdt.c b/sdt.c
index c61c4e29..6fd33148 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 1.6 2004/01/17 11:29:51 kls Exp $
+ * $Id: sdt.c 1.7 2004/01/17 17:27:49 kls Exp $
*/
#include "sdt.h"
@@ -83,6 +83,8 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
strcpy(ps, NameBuf);
pn = ShortNameBuf;
}
+ pn = compactspace(pn);
+ ps = compactspace(ps);
if (channel) {
channel->SetId(sdt.getOriginalNetworkId(), sdt.getTransportStreamId(), SiSdtService.getServiceId());
if (Setup.UpdateChannels >= 1)