Commit d438ca84 authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Ilkka Ollakka

demux/ts.c: dont leak psz_name/psz_description on multilanguage epg

This happens when there are multiple descriptions on event (multilanguage epg).
Only use the first one per event. Maybe someday we handle epg-language as same
as subtitle-language preference.
(cherry picked from commit 33f515869ff07841e7b433128f783b518b4156e0)
Signed-off-by: default avatarIlkka Ollakka <ileoo@iki.fi>
parent f8e45a55
......@@ -3012,7 +3012,9 @@ static void EITCallBack( demux_t *p_demux,
{
dvbpsi_short_event_dr_t *pE = dvbpsi_DecodeShortEventDr( p_dr );
if( pE )
/* Only take first description, as we don't handle language-info
for epg atm*/
if( pE && psz_name == NULL)
{
psz_name = EITConvertToUTF8( pE->i_event_name, pE->i_event_name_length,
p_sys->b_broken_charset );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment