[vlc-devel] [PATCH 4/4] filters: add an operations structure to set the callbacks
Rémi Denis-Courmont
remi at remlab.net
Tue Oct 6 16:41:42 CEST 2020
Le tiistaina 6. lokakuuta 2020, 10.14.08 EEST Thomas Guillem a écrit :
> > static inline void filter_Flush( filter_t *p_filter )
> > {
> >
> > - if( p_filter->pf_flush != NULL )
> > - p_filter->pf_flush( p_filter );
> > + if( p_filter->ops && p_filter->ops->flush != NULL )
>
> filters->ops should be mandatory no ?
I think so.
There's no sense for a filter not to provide any ops.
--
Реми Дёни-Курмон
http://www.remlab.net/
More information about the vlc-devel
mailing list