Commit 28466012 authored by massiot's avatar massiot

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


git-svn-id: svn://svn.videolan.org/dvblast/trunk@37 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 670911d6
......@@ -196,11 +196,11 @@ static void demux_Handle( block_t *p_ts )
if ( block_UnitStart( p_ts ) )
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 );
}
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 );
}
......
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