]> git.sesse.net Git - vlc/blobdiff - modules/codec/telx.c
Clean up a bit subpicture region API.
[vlc] / modules / codec / telx.c
index 6da895d0d279acc5da1915c9f4243884c9683c67..a0ab9068eb23a7274aa29f9c34cafa9bb4e367c3 100644 (file)
@@ -708,7 +708,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
     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 == NULL )
     {
         msg_Err( p_dec, "cannot allocate SPU region" );