Commit 5e35aa8c authored by Francois Cartegnie's avatar Francois Cartegnie

input: dvb: also create program data for programs on the same frequency

We create program entries, not only for current, but also all reachable
programs/pid on the same frequency (which are already seen, but skipped
in demux). But we keep only sending events regarding current program.
This allows generating data and displaying EPG entries for all available
channels
parent 1f416db1
......@@ -1194,8 +1194,6 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, const vlc_meta_t *p_me
return;
}
/* Find program */
if( !EsOutIsProgramVisible( out, i_group ) )
return;
p_pgrm = EsOutProgramFind( out, i_group );
if( !p_pgrm )
return;
......@@ -1232,7 +1230,7 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, const vlc_meta_t *p_me
}
/* ugly but it works */
if( psz_text )
if( EsOutIsProgramVisible( out, i_group ) && psz_text )
{
input_SendEventProgramDel( p_input, i_group );
input_SendEventProgramAdd( p_input, i_group, psz_text );
......@@ -1287,8 +1285,6 @@ static void EsOutProgramEpg( es_out_t *out, int i_group, const vlc_epg_t *p_epg
char *psz_cat;
/* Find program */
if( !EsOutIsProgramVisible( out, i_group ) )
return;
p_pgrm = EsOutProgramFind( out, i_group );
if( !p_pgrm )
return;
......
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