Skip to content

Commit fc14c61

Browse files
committed
Merge branch 'pr/n411_Abhinav95'
2 parents c4073d1 + a78f7d2 commit fc14c61

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/lib_ccx/dvb_subtitle_decoder.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,21 @@ int parse_dvb_description(struct dvb_config* cfg, unsigned char*data,
17121712

17131713
}
17141714

1715+
/*
1716+
Abhinav95: The way this function is called right now, only cfg->lang_index[0]
1717+
gets populated. E.g. for 3 stream languages, it will be called 3 times, and
1718+
set the language index in only the first element each time. This works with the
1719+
current state of the DVB code.
1720+
*/
1721+
if(ccx_options.dvblang)
1722+
{
1723+
if(strcmp(ccx_options.dvblang, language[cfg->lang_index[0]])!=0)
1724+
{
1725+
mprint("Ignoring stream language '%s' not equal to dvblang '%s'\n",
1726+
language[cfg->lang_index[0]], ccx_options.dvblang);
1727+
return -1;
1728+
}
1729+
}
17151730

17161731
return 0;
17171732
}

0 commit comments

Comments
 (0)