Commit 78e1f793 authored by md's avatar md

* demux.c: Use PAT_PID where applicable


git-svn-id: svn://svn.videolan.org/dvblast/trunk@69 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 8d943cdf
......@@ -8,7 +8,8 @@
# PGP key ID and fingerprint (P), description (D), and snail-mail address (S).
N: Marian Ďurkovič
E: md AT bts DOT SK
E: md AT bts DOT sk
C: md
D: numerous bug fixes
N: Andy Gatward
......
......@@ -44,6 +44,7 @@
* Local declarations
*****************************************************************************/
#define PAT_PID 0x00
#define SDT_PID 0x11
#define EIT_PID 0x12
#define TDT_PID 0x14
......@@ -127,7 +128,7 @@ void demux_Open( void )
if ( b_budget_mode )
i_demux_fd = dvb_SetFilter(8192);
SetPID(0); /* PAT */
SetPID(PAT_PID); /* PAT */
p_pat_dvbpsi_handle = dvbpsi_AttachPAT( PATCallback, NULL );
if( b_enable_epg )
......@@ -186,7 +187,7 @@ static void demux_Handle( block_t *p_ts )
if ( p_pids[i_pid].i_refcount )
{
if ( i_pid == 0 )
if ( i_pid == PAT_PID )
{
dvbpsi_PushPacket( p_pat_dvbpsi_handle, p_ts->p_ts );
if ( block_UnitStart( p_ts ) )
......@@ -697,7 +698,7 @@ static void SendPAT( void )
{
block_t *p_block;
p_block = WritePSISection( pp_outputs[i]->p_pat_section, 0,
p_block = WritePSISection( pp_outputs[i]->p_pat_section, PAT_PID,
&pp_outputs[i]->i_pat_cc );
while ( p_block != NULL )
{
......
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