]> git.sesse.net Git - vlc/blobdiff - modules/codec/cc.c
Clean up a bit subpicture region API.
[vlc] / modules / codec / cc.c
index f575f669f645544c0468c4a615234e66d7dd6c7c..77abe71cb8559ab14f3f97a7b3c7e20eaebb38f4 100644 (file)
@@ -344,7 +344,7 @@ static subpicture_t *Subtitle( decoder_t *p_dec, char *psz_subtitle, char *psz_h
     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_dec), &fmt );
+    p_spu->p_region = subpicture_region_New( &fmt );
     if( !p_spu->p_region )
     {
         msg_Err( p_dec, "cannot allocate SPU region" );