mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling multiple language codes
This commit is contained in:
parent
0d6ce369c6
commit
1781a77e0b
5
epg.c
5
epg.c
@ -7,7 +7,7 @@
|
|||||||
* Original version (as used in VDR before 1.3.0) written by
|
* Original version (as used in VDR before 1.3.0) written by
|
||||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
* 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"
|
#include "epg.h"
|
||||||
@ -78,6 +78,9 @@ void cComponents::SetComponent(int Index, uchar Stream, uchar Type, const char *
|
|||||||
p->stream = Stream;
|
p->stream = Stream;
|
||||||
p->type = Type;
|
p->type = Type;
|
||||||
strn0cpy(p->language, Language, sizeof(p->language));
|
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);
|
p->description = strcpyrealloc(p->description, !isempty(Description) ? Description : NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user