Commit 3267066d authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Don't add MPEG-TS program data for programs that don't exist. Patch by Dnumgis. This fixes #683

parent e4ba74a8
...@@ -2652,6 +2652,8 @@ static void PSINewTableCallBack( demux_t *p_demux, dvbpsi_handle h, ...@@ -2652,6 +2652,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 )
{ {
......
...@@ -594,8 +594,11 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, vlc_meta_t *p_meta ) ...@@ -594,8 +594,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_title && *psz_title ) if( psz_title && *psz_title )
......
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