Commit ffec5330 authored by massiot's avatar massiot

* demux.c: Correctly handle SDT on configuration changes.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@22 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent e2ebaad4
...@@ -135,6 +135,17 @@ void demux_Open( void ) ...@@ -135,6 +135,17 @@ void demux_Open( void )
} }
} }
/*****************************************************************************
* demux_Hup
*****************************************************************************/
void demux_Hup( void )
{
if( b_enable_epg )
{
p_sdt_dvbpsi_handle->b_discontinuity = 1;
}
}
/***************************************************************************** /*****************************************************************************
* demux_Run * demux_Run
*****************************************************************************/ *****************************************************************************/
......
...@@ -362,6 +362,7 @@ int main( int i_argc, char **pp_argv ) ...@@ -362,6 +362,7 @@ int main( int i_argc, char **pp_argv )
b_hup_received = 0; b_hup_received = 0;
msg_Warn( NULL, "HUP received, reloading" ); msg_Warn( NULL, "HUP received, reloading" );
ReadConfiguration( psz_conf_file ); ReadConfiguration( psz_conf_file );
demux_Hup();
} }
demux_Run(); demux_Run();
......
...@@ -119,6 +119,7 @@ uint8_t dvb_FrontendStatus( uint8_t *p_answer, ssize_t *pi_size ); ...@@ -119,6 +119,7 @@ uint8_t dvb_FrontendStatus( uint8_t *p_answer, ssize_t *pi_size );
void demux_Open( void ); void demux_Open( void );
void demux_Run( void ); void demux_Run( void );
void demux_Hup( void );
void demux_Change( output_t *p_output, uint16_t i_sid, void demux_Change( output_t *p_output, uint16_t i_sid,
uint16_t *pi_pids, int i_nb_pids ); uint16_t *pi_pids, int i_nb_pids );
void demux_ResendCAPMTs( void ); void demux_ResendCAPMTs( void );
......
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