Commit f1863e29 authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Christophe Massiot

* demux.c: Use PAT_PID where applicable

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