summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-19 11:15:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-19 11:15:44 +0100
commit1781a77e0b459bcecd8aa77e18bd1bcbad0a745f (patch)
treefaaf0968caf7929c66d8f08ae2c945a3ca64245f /epg.c
parent0d6ce369c6936f423334deaa9725a88a6337a981 (diff)
downloadvdr-1781a77e0b459bcecd8aa77e18bd1bcbad0a745f.tar.gz
vdr-1781a77e0b459bcecd8aa77e18bd1bcbad0a745f.tar.bz2
Fixed handling multiple language codes
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index aa22a988..764533e4 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.59 2006/02/18 15:01:59 kls Exp $
+ * $Id: epg.c 1.60 2006/02/19 11:15:44 kls Exp $
*/
#include "epg.h"
@@ -78,6 +78,9 @@ void cComponents::SetComponent(int Index, uchar Stream, uchar Type, const char *
p->stream = Stream;
p->type = Type;
strn0cpy(p->language, Language, sizeof(p->language));
+ char *q = strchr(p->language, ',');
+ if (q)
+ *q = 0; // strips rest of "normalized" language codes
p->description = strcpyrealloc(p->description, !isempty(Description) ? Description : NULL);
}