/* Create a new subpicture region */
memset( &fmt, 0, sizeof(video_format_t) );
- fmt.i_chroma = VLC_FOURCC('Y','U','V','A');
- fmt.i_aspect = 0;
+ fmt.i_chroma = VLC_CODEC_YUVA;
fmt.i_width = fmt.i_visible_width = i_width;
fmt.i_height = fmt.i_visible_height = i_height;
fmt.i_x_offset = fmt.i_y_offset = 0;
- p_subpic->p_region = p_subpic->pf_create_region( VLC_OBJECT(p_spu), &fmt );
+ p_subpic->p_region = subpicture_region_New( &fmt );
if( !p_subpic->p_region )
{
msg_Err( p_spu, "cannot allocate SPU region" );
subpicture_t *p_subpic;
mtime_t i_now = mdate();
+ VLC_UNUSED(p_spu);
+
/* Create and initialize a subpicture */
- p_subpic = spu_CreateSubpicture( p_spu );
+ p_subpic = subpicture_New();
if( p_subpic == NULL ) return NULL;
p_subpic->i_channel = i_channel;