[vlc-devel] commit: Removed now unused pf_pre_render in subpicture_t. (Laurent Aimar )

git version control git at videolan.org
Tue Jul 28 21:44:21 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jul 28 20:34:31 2009 +0200| [5cd2d0765f9d6f9c54b51c97a67305206f82a5f7] | committer: Laurent Aimar 

Removed now unused pf_pre_render in subpicture_t.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cd2d0765f9d6f9c54b51c97a67305206f82a5f7
---

 include/vlc_subpicture.h            |    3 +--
 src/video_output/vout_subpictures.c |    4 ----
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/include/vlc_subpicture.h b/include/vlc_subpicture.h
index bdb09fd..dcd15cb 100644
--- a/include/vlc_subpicture.h
+++ b/include/vlc_subpicture.h
@@ -152,8 +152,7 @@ struct subpicture_t
     /** Pointer to function that cleans up the private data of this subtitle */
     void ( *pf_destroy ) ( subpicture_t * );
 
-    /** Pointer to functions for region management */
-    void (*pf_pre_render)    ( spu_t *, subpicture_t *, const video_format_t * );
+    /** Pointer to function that update the regions before rendering (optionnal) */
     void (*pf_update_regions)( spu_t *,
                                subpicture_t *, const video_format_t *, mtime_t );
 
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 4f8512d..353ec35 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -379,10 +379,6 @@ void spu_RenderSubpictures( spu_t *p_spu,
             p_subpic != NULL;
                 p_subpic = p_subpic->p_next )
     {
-        /* TODO remove pre-render */
-        if( p_subpic->pf_pre_render )
-            p_subpic->pf_pre_render( p_spu, p_subpic, p_fmt_dst );
-
         if( p_subpic->pf_update_regions )
         {
             video_format_t fmt_org = *p_fmt_dst;




More information about the vlc-devel mailing list