spu: fix ugly cast in filter chain (and unexport function)
[vlc.git] / src / misc / filter_chain.c
index 79a00fa..c9b56a0 100644 (file)
@@ -335,16 +335,15 @@ block_t *filter_chain_AudioFilter( filter_chain_t *p_chain, block_t *p_block )
     return p_block;
 }
 
-void filter_chain_SubSource( filter_chain_t *p_chain,
+void filter_chain_SubSource( filter_chain_t *p_chain, spu_t *spu,
                              mtime_t display_date )
 {
     for( chained_filter_t *f = p_chain->first; f != NULL; f = f->next )
     {
         filter_t *p_filter = &f->filter;
         subpicture_t *p_subpic = p_filter->pf_sub_source( p_filter, display_date );
-        /* XXX I find that spu_t cast ugly */
         if( p_subpic )
-            spu_PutSubpicture( (spu_t*)p_chain->p_this, p_subpic );
+            spu_PutSubpicture( spu, p_subpic );
     }
 }