int i_block;
block_t *pp_block[CC_MAX_REORDER_SIZE];
+ int64_t i_last_pts;
int i_field;
int i_channel;
/* init of p_sys */
memset( p_sys, 0, sizeof( *p_sys ) );
p_sys->i_block = 0;
+ p_sys->i_last_pts = 0;
p_sys->i_field = i_field;
p_sys->i_channel = i_channel;
if( p_block )
block_Release( p_block );
- static int64_t i_last = 0;
- if( b_changed )//&& i_pts - i_last > 100*1000 )
+ p_sys->i_last_pts = 0;
+ if( b_changed )//&& i_pts - p_sys->i_last_pts > 100*1000 )
{
char *psz_subtitle = Eia608Text( &p_sys->eia608, false );
char *psz_html = NULL;//Eia608Text( &p_sys->eia608, true );
- i_last = i_pts;
+ p_sys->i_last_pts = i_pts;
return Subtitle( p_dec, psz_subtitle, psz_html, i_pts );
}
return NULL;