[vlc-devel] commit: Removed useless pre render callback in ssa decoder. (Laurent Aimar )
git version control
git at videolan.org
Fri Jul 24 23:45:48 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jul 24 23:04:22 2009 +0200| [fea2b3459e45d35a2aeedd2853d1298ca696e32d] | committer: Laurent Aimar
Removed useless pre render callback in ssa decoder.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fea2b3459e45d35a2aeedd2853d1298ca696e32d
---
modules/codec/libass.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 5d61fc4..1026b3f 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -67,7 +67,6 @@ vlc_module_end ()
*****************************************************************************/
static subpicture_t *DecodeBlock( decoder_t *, block_t ** );
static void DestroySubpicture( subpicture_t * );
-static void PreRender( spu_t *, subpicture_t *, const video_format_t * );
static void UpdateRegions( spu_t *,
subpicture_t *, const video_format_t *, mtime_t );
@@ -98,9 +97,6 @@ struct decoder_sys_t
/* */
ass_track_t *p_track;
-
- /* */
- subpicture_t *p_spu_final;
};
static void DecSysRelease( decoder_sys_t *p_sys );
static void DecSysHold( decoder_sys_t *p_sys );
@@ -286,7 +282,6 @@ static subpicture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
vlc_mutex_unlock( &libass_lock );
- p_spu->pf_pre_render = PreRender;
p_spu->pf_update_regions = UpdateRegions;
p_spu->pf_destroy = DestroySubpicture;
p_spu->p_sys->p_dec_sys = p_sys;
@@ -309,16 +304,6 @@ static void DestroySubpicture( subpicture_t *p_subpic )
free( p_subpic->p_sys );
}
-static void PreRender( spu_t *p_spu, subpicture_t *p_subpic,
- const video_format_t *p_fmt )
-{
- decoder_sys_t *p_dec_sys = p_subpic->p_sys->p_dec_sys;
-
- p_dec_sys->p_spu_final = p_subpic;
- VLC_UNUSED(p_fmt);
- VLC_UNUSED(p_spu);
-}
-
static void UpdateRegions( spu_t *p_spu, subpicture_t *p_subpic,
const video_format_t *p_fmt, mtime_t i_ts )
{
@@ -328,12 +313,6 @@ static void UpdateRegions( spu_t *p_spu, subpicture_t *p_subpic,
video_format_t fmt;
bool b_fmt_changed;
- if( p_subpic != p_sys->p_spu_final )
- {
- SubpictureReleaseRegions( p_spu, p_subpic );
- return;
- }
-
vlc_mutex_lock( &libass_lock );
/* */
More information about the vlc-devel
mailing list