static void PIDInit ( ts_pid_t *pid, bool b_psi, ts_psi_t *p_owner );
static void PIDClean( demux_t *, ts_pid_t *pid );
-static void PIDFillFormat( const ts_es_t *es, int i_stream_type );
+static void PIDFillFormat( es_format_t *fmt, int i_stream_type );
static void PATCallBack( void*, dvbpsi_pat_t * );
static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt );
else
{
const int i_stream_type = strtol( psz_opt, NULL, 0 );
- PIDFillFormat( pid->es, i_stream_type );
+ PIDFillFormat( &pid->es->fmt, i_stream_type );
}
pid->es->fmt.i_group = i_number;
if( p_sys->b_es_id_pid )
return i_ret;
}
-static void PIDFillFormat( const ts_es_t *es, int i_stream_type )
+static void PIDFillFormat( es_format_t *fmt, int i_stream_type )
{
- es_format_t *fmt = &es->fmt;
-
switch( i_stream_type )
{
case 0x01: /* MPEG-1 video */
}
PIDInit( pid, false, pmt->psi );
- PIDFillFormat( pid->es, p_es->i_type );
+ PIDFillFormat( &pid->es->fmt, p_es->i_type );
pid->i_owner_number = prg->i_number;
pid->i_pid = p_es->i_pid;
pid->b_seen = p_sys->pid[p_es->i_pid].b_seen;