Commit d3d4ff67 authored by Christophe Massiot's avatar Christophe Massiot

* demux.c: Avoid segfault caused when EPG is not used (thanks Marian !).

parent e9d39756
...@@ -196,11 +196,11 @@ static void demux_Handle( block_t *p_ts ) ...@@ -196,11 +196,11 @@ static void demux_Handle( block_t *p_ts )
if ( block_UnitStart( p_ts ) ) if ( block_UnitStart( p_ts ) )
SendPAT(); SendPAT();
} }
else if ( i_pid == EIT_PID ) else if ( b_enable_epg && i_pid == EIT_PID )
{ {
dvbpsi_PushPacket( p_eit_dvbpsi_handle, p_ts->p_ts ); dvbpsi_PushPacket( p_eit_dvbpsi_handle, p_ts->p_ts );
} }
else if (i_pid == SDT_PID ) else if ( b_enable_epg && i_pid == SDT_PID )
{ {
dvbpsi_PushPacket( p_sdt_dvbpsi_handle, p_ts->p_ts ); dvbpsi_PushPacket( p_sdt_dvbpsi_handle, p_ts->p_ts );
} }
......
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