]> git.sesse.net Git - vlc/blobdiff - src/video_output/video_text.c
Remove intf_thread_t.change_lock
[vlc] / src / video_output / video_text.c
index a0499bb0e66cf1eb692d3851e9e73c5d757ea965..d0e7a0ac3c7ca4e8faea8c94bf2f1891c5a2aa94 100644 (file)
@@ -80,7 +80,7 @@ int vout_ShowTextAbsolute( vout_thread_t *p_vout, int i_channel,
 
     if( !psz_string ) return VLC_EGENERIC;
 
-    p_spu = spu_CreateSubpicture( p_vout->p_spu );
+    p_spu = subpicture_New();
     if( !p_spu )
         return VLC_EGENERIC;
 
@@ -98,11 +98,11 @@ int vout_ShowTextAbsolute( vout_thread_t *p_vout, 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_vout), &fmt );
+    p_spu->p_region = subpicture_region_New( &fmt );
     if( !p_spu->p_region )
     {
         msg_Err( p_vout, "cannot allocate SPU region" );
-        spu_DestroySubpicture( p_vout->p_spu, p_spu );
+        subpicture_Delete( p_spu );
         return VLC_EGENERIC;
     }