* sub.c: subtitle demux for external subtitle files
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
- * $Id: sub.c,v 1.45 2004/01/27 07:05:10 hartman Exp $
+ * $Id: sub.c,v 1.46 2004/01/27 11:57:05 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Derk-Jan Hartman <hartman at videolan dot org>
p_sub->pf_seek = sub_seek;
p_sub->pf_close = sub_close;
- ps_track_init( p_sub->tk );
-
/* Initialize the variables */
var_Create( p_this, "sub-fps", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
var_Create( p_this, "sub-delay", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
else if( local_stristr( s, "# VobSub index file" ) )
{
i_sub_type = SUB_TYPE_VOBSUB;
+ ps_track_init( p_sub->tk );
break;
}
}
return VLC_SUCCESS;
}
-
* sub.h
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
- * $Id: sub.h,v 1.17 2004/01/27 07:05:10 hartman Exp $
+ * $Id: sub.h,v 1.18 2004/01/27 11:57:05 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
es_out_id_t *p_es;
int i_previously_selected; /* to make pf_seek */
FILE *p_vobsub_file;
- ps_track_t *tk[PS_TK_COUNT];
+ ps_track_t tk[PS_TK_COUNT];
} subtitle_demux_t;