*****************************************************************************/
static block_t *Reassemble( decoder_t *, block_t ** );
-static void Decode ( decoder_t *, block_t ** );
+static subpicture_t *Decode( decoder_t *, block_t ** );
static block_t *Packetize( decoder_t *, block_t ** );
-
/*****************************************************************************
* VCDSubOpen
*****************************************************************************
/*****************************************************************************
* Decode:
*****************************************************************************/
-static void
+static subpicture_t *
Decode ( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
{
if( p_last_vout != p_sys->p_vout )
{
- p_sys->i_subpic_channel =
- vout_RegisterOSDChannel( p_sys->p_vout );
+ spu_Control( p_sys->p_vout->p_spu, SPU_CHANNEL_REGISTER,
+ &p_sys->i_subpic_channel );
}
/* Parse and decode */
VCDSubInitSubtitleBlock ( p_sys );
}
+ return NULL;
}
/*****************************************************************************