Commit 0c5ff4b6 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

backport [17053]: don't add meta for non-existing programs

parent da1c0b84
......@@ -2647,6 +2647,8 @@ static void PSINewTableCallBack( demux_t *p_demux, dvbpsi_handle h,
msg_Dbg( p_demux, "PSINewTableCallBack: table 0x%x(%d) ext=0x%x(%d)",
i_table_id, i_table_id, i_extension, i_extension );
#endif
if( p_demux->p_sys->pid[0].psi->i_pat_version == -1 )
return;
if( i_table_id == 0x42 )
{
......
......@@ -602,8 +602,11 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, vlc_meta_t *p_meta )
}
}
if( p_pgrm == NULL )
p_pgrm = EsOutProgramAdd( out, i_group );
if( p_pgrm == NULL ) {
free( psz_cat );
msg_Dbg( p_input, "Trying to add meta for non-existing program" );
return;
}
/* Update the description text of the program */
if( psz_name && *psz_name )
......
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