X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fosd%2Fosd_text.c;h=ddc3dd10ff30de923d9bac7503ed92021fb13015;hb=8fce3d90cf2a6fcd10eab690ded15e351bb9a6f5;hp=0657c2d920cdbac54ead36c303f8c1e90354a2c5;hpb=90554602d2246d9645724a23f3f6fded04bc17b6;p=vlc diff --git a/src/osd/osd_text.c b/src/osd/osd_text.c index 0657c2d920..ddc3dd10ff 100644 --- a/src/osd/osd_text.c +++ b/src/osd/osd_text.c @@ -78,7 +78,7 @@ int osd_ShowTextAbsolute( spu_t *p_spu_channel, int i_channel, if( !psz_string ) return VLC_EGENERIC; - p_spu = spu_CreateSubpicture( p_spu_channel ); + p_spu = subpicture_New(); if( !p_spu ) return VLC_EGENERIC; @@ -98,7 +98,7 @@ int osd_ShowTextAbsolute( spu_t *p_spu_channel, int i_channel, if( !p_spu->p_region ) { msg_Err( p_spu_channel, "cannot allocate SPU region" ); - spu_DestroySubpicture( p_spu_channel, p_spu ); + subpicture_Delete( p_spu ); return VLC_EGENERIC; }