Commit 299f2da9 authored by massiot's avatar massiot

* demux.c: Pass through the TDT for DVB compliance, patch by Marian Ďurkovič.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@38 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 28466012
...@@ -6,7 +6,7 @@ Changes between 1.0 and 1.1: ...@@ -6,7 +6,7 @@ Changes between 1.0 and 1.1:
* Support for adapters with multiple frontends (-n) * Support for adapters with multiple frontends (-n)
* Control of verbosity level with -q * Control of verbosity level with -q
* Support for TS over raw UDP with -U or /udp in the config file * Support for TS over raw UDP with -U or /udp in the config file
* EIT and SDT pass-through for EPG information * EIT, SDT and TDT pass-through for EPG information (-e)
* Original TSID kept (randomized TSID via -T) * Original TSID kept (randomized TSID via -T)
* Miscellaneous CAM and tuning fixes * Miscellaneous CAM and tuning fixes
* DVB-S diseqc support * DVB-S diseqc support
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#define SDT_PID 0x11 #define SDT_PID 0x11
#define EIT_PID 0x12 #define EIT_PID 0x12
#define TDT_PID 0x14
typedef struct ts_pid_t typedef struct ts_pid_t
{ {
...@@ -132,6 +133,8 @@ void demux_Open( void ) ...@@ -132,6 +133,8 @@ void demux_Open( void )
SetPID(EIT_PID); /* EIT */ SetPID(EIT_PID); /* EIT */
p_eit_dvbpsi_handle = dvbpsi_AttachDemux( PSITableCallback, NULL ); p_eit_dvbpsi_handle = dvbpsi_AttachDemux( PSITableCallback, NULL );
SetPID(TDT_PID); /* TDT */
} }
} }
...@@ -204,6 +207,14 @@ static void demux_Handle( block_t *p_ts ) ...@@ -204,6 +207,14 @@ static void demux_Handle( block_t *p_ts )
{ {
dvbpsi_PushPacket( p_sdt_dvbpsi_handle, p_ts->p_ts ); dvbpsi_PushPacket( p_sdt_dvbpsi_handle, p_ts->p_ts );
} }
else if ( b_enable_epg && i_pid == TDT_PID )
{
for ( i = 0; i < i_nb_outputs; i++ )
{
if ( pp_outputs[i]->i_maddr )
output_Put( pp_outputs[i], p_ts );
}
}
else else
{ {
for ( i = 0; i < i_nb_sids; i++ ) for ( i = 0; i < i_nb_sids; i++ )
......
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