]> git.sesse.net Git - vlc/blobdiff - src/osd/osd_widgets.c
Clean up a bit subpicture region API.
[vlc] / src / osd / osd_widgets.c
index 2d384d1b4cd3f4a16ba1983c77acc7f2d832d3c3..76765165074b73c5571c4f66750326c6f3c762b1 100644 (file)
@@ -164,7 +164,7 @@ static int CreatePicture( spu_t *p_spu, subpicture_t *p_subpic,
     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" );