]> git.sesse.net Git - vlc/blobdiff - modules/codec/zvbi.c
Clean up a bit subpicture region API.
[vlc] / modules / codec / zvbi.c
index 5e26f457a97b63a2f38dda99a2b28fe2459c31fb..e716f90f1a9ea80675c6f8fdaf052caf2f13fc61 100644 (file)
@@ -483,7 +483,7 @@ static subpicture_t *Subpicture( decoder_t *p_dec, video_format_t *p_fmt,
     }
     fmt.i_x_offset = fmt.i_y_offset = 0;
 
-    p_spu->p_region = p_spu->pf_create_region( VLC_OBJECT(p_dec), &fmt );
+    p_spu->p_region = subpicture_region_New( &fmt );
     if( p_spu->p_region == NULL )
     {
         msg_Err( p_dec, "cannot allocate SPU region" );