]> git.sesse.net Git - vlc/blobdiff - src/osd/osd_text.c
Clean up a bit subpicture region API.
[vlc] / src / osd / osd_text.c
index ea2c969ac4d6919b7fffd127fb694d922b227bb5..0657c2d920cdbac54ead36c303f8c1e90354a2c5 100644 (file)
@@ -94,7 +94,7 @@ int osd_ShowTextAbsolute( spu_t *p_spu_channel, int i_channel,
     fmt.i_aspect = 0;
     fmt.i_width = fmt.i_height = 0;
     fmt.i_x_offset = fmt.i_y_offset = 0;
-    p_spu->p_region = p_spu->pf_create_region( VLC_OBJECT(p_spu_channel), &fmt );
+    p_spu->p_region = subpicture_region_New( &fmt );
     if( !p_spu->p_region )
     {
         msg_Err( p_spu_channel, "cannot allocate SPU region" );