Commit b54994d4 authored by Laurent Aimar's avatar Laurent Aimar

Removed debug left over in cc decoder.

parent c1156ed5
...@@ -155,7 +155,6 @@ struct decoder_sys_t ...@@ -155,7 +155,6 @@ struct decoder_sys_t
int i_block; int i_block;
block_t *pp_block[CC_MAX_REORDER_SIZE]; block_t *pp_block[CC_MAX_REORDER_SIZE];
int64_t i_last_pts;
int i_field; int i_field;
int i_channel; int i_channel;
...@@ -207,7 +206,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -207,7 +206,6 @@ static int Open( vlc_object_t *p_this )
/* init of p_sys */ /* init of p_sys */
memset( p_sys, 0, sizeof( *p_sys ) ); memset( p_sys, 0, sizeof( *p_sys ) );
p_sys->i_block = 0; p_sys->i_block = 0;
p_sys->i_last_pts = 0;
p_sys->i_field = i_field; p_sys->i_field = i_field;
p_sys->i_channel = i_channel; p_sys->i_channel = i_channel;
...@@ -393,12 +391,10 @@ static subpicture_t *Convert( decoder_t *p_dec, block_t *p_block ) ...@@ -393,12 +391,10 @@ static subpicture_t *Convert( decoder_t *p_dec, block_t *p_block )
if( p_block ) if( p_block )
block_Release( p_block ); block_Release( p_block );
p_sys->i_last_pts = 0; if( b_changed )
if( b_changed )//&& i_pts - p_sys->i_last_pts > 100*1000 )
{ {
char *psz_subtitle = Eia608Text( &p_sys->eia608, false ); char *psz_subtitle = Eia608Text( &p_sys->eia608, false );
char *psz_html = NULL;//Eia608Text( &p_sys->eia608, true ); char *psz_html = NULL;//Eia608Text( &p_sys->eia608, true );
p_sys->i_last_pts = i_pts;
return Subtitle( p_dec, psz_subtitle, psz_html, i_pts ); return Subtitle( p_dec, psz_subtitle, psz_html, i_pts );
} }
return NULL; return 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