summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-07-18 11:17:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-07-18 11:17:32 +0200
commit8d508dec84fc8b9c513d4d44a7ff74e2e3d6eae9 (patch)
tree02249c3870ab40089e83c5a73d35bb242b7c2d13 /sdt.c
parentbf9e7df743ca99edd590671810cd3cd0171bf158 (diff)
downloadvdr-8d508dec84fc8b9c513d4d44a7ff74e2e3d6eae9.tar.gz
vdr-8d508dec84fc8b9c513d4d44a7ff74e2e3d6eae9.tar.bz2
Now storing the name of the service provider (aka "bouquet") in the channel name
Diffstat (limited to 'sdt.c')
-rw-r--r--sdt.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sdt.c b/sdt.c
index a4a62b4d..efcad3d5 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.10 2004/07/18 10:58:01 kls Exp $
+ * $Id: sdt.c 1.11 2004/07/18 11:14:42 kls Exp $
*/
#include "sdt.h"
@@ -69,6 +69,15 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
strcpy(ps, NameBuf);
pn = ShortNameBuf;
}
+ if (*pn) {
+ char ProviderNameBuf[1024];
+ sd->providerName.getText(ProviderNameBuf, sizeof(ProviderNameBuf));
+ if (*ProviderNameBuf) {
+ char *p = pn + strlen(pn);
+ *p++ = ';';
+ strcpy(p, ProviderNameBuf);
+ }
+ }
if (channel) {
channel->SetId(sdt.getOriginalNetworkId(), sdt.getTransportStreamId(), SiSdtService.getServiceId());
if (Setup.UpdateChannels >= 1)