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