]> git.sesse.net Git - vlc/blobdiff - modules/codec/svcdsub.c
Added decoder_NewSubpicture/decoder_DeleteSubpicture helpers.
[vlc] / modules / codec / svcdsub.c
index b0fdfb81357c32ec0bda20fb4334464fac0cc6b6..d5e5e9dac7b4a0a3f5ff20ad77ea6f24c094c878 100644 (file)
@@ -471,7 +471,7 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, block_t *p_data )
     int i;
 
     /* Allocate the subpicture internal data. */
-    p_spu = p_dec->pf_spu_buffer_new( p_dec );
+    p_spu = decoder_NewSubpicture( p_dec );
     if( !p_spu ) return NULL;
 
     p_spu->i_start = p_data->i_pts;
@@ -509,7 +509,7 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, block_t *p_data )
     if( !p_region )
     {
         msg_Err( p_dec, "cannot allocate SVCD subtitle region" );
-        p_dec->pf_spu_buffer_del( p_dec, p_spu );
+        decoder_DeleteSubpicture( p_dec, p_spu );
         return NULL;
     }