#include <vlc_common.h>
#include <vlc_plugin.h>
-#include <errno.h>
#include <sys/types.h>
#include <limits.h>
#include <vlc_demux.h>
-#include <vlc_charset.h>
#include "ps.h"
#include "vobsub.h"
set_callbacks( Open, Close )
- add_shortcut( "vobsub" )
- add_shortcut( "subtitle" )
+ add_shortcut( "vobsub", "subtitle" )
vlc_module_end ()
/*****************************************************************************
p_block->i_buffer = i_read;
/* pts */
- p_block->i_pts = tk.p_subtitles[tk.i_current_subtitle].i_start;
+ p_block->i_pts = VLC_TS_0 + tk.p_subtitles[tk.i_current_subtitle].i_start;
/* demux this block */
DemuxVobSub( p_demux, p_block );
if( p_tk->p_es && p_tk->i_track_id == i_spu )
{
es_out_Send( p_demux->out, p_tk->p_es, p_pkt );
- p_bk->i_pts = 0; /*only first packet has a pts */
+ p_bk->i_pts = VLC_TS_INVALID; /*only first packet has a pts */
break;
}
}