mirror of https://code.videolan.org/videolan/vlc
filter: remove filter_chain_New() constant parameter
This commit is contained in:
parent
25f857a50c
commit
f961b58a63
|
@ -273,12 +273,11 @@ typedef struct filter_chain_t filter_chain_t;
|
|||
*
|
||||
* \param p_object pointer to a vlc object
|
||||
* \param psz_capability vlc capability of filters in filter chain
|
||||
* \param b_allow_format_fmt_change allow changing of fmt
|
||||
* \return pointer to a filter chain
|
||||
*/
|
||||
filter_chain_t * filter_chain_New( vlc_object_t *, const char *, bool )
|
||||
filter_chain_t * filter_chain_New( vlc_object_t *, const char * )
|
||||
VLC_USED;
|
||||
#define filter_chain_New( a, b, c ) filter_chain_New( VLC_OBJECT( a ), b, c )
|
||||
#define filter_chain_New( a, b ) filter_chain_New( VLC_OBJECT( a ), b )
|
||||
|
||||
/**
|
||||
* Creates a new video filter chain.
|
||||
|
|
|
@ -94,14 +94,13 @@ static filter_chain_t *filter_chain_NewInner( const filter_owner_t *callbacks,
|
|||
/**
|
||||
* Filter chain initialisation
|
||||
*/
|
||||
filter_chain_t *filter_chain_New( vlc_object_t *obj, const char *cap,
|
||||
bool fmt_out_change )
|
||||
filter_chain_t *filter_chain_New( vlc_object_t *obj, const char *cap )
|
||||
{
|
||||
filter_owner_t callbacks = {
|
||||
.sys = obj,
|
||||
};
|
||||
|
||||
return filter_chain_NewInner( &callbacks, cap, fmt_out_change, NULL );
|
||||
return filter_chain_NewInner( &callbacks, cap, false, NULL );
|
||||
}
|
||||
|
||||
/** Chained filter picture allocator function */
|
||||
|
|
|
@ -1212,8 +1212,8 @@ spu_t *spu_Create(vlc_object_t *object)
|
|||
sys->filter_chain_update = NULL;
|
||||
vlc_mutex_init(&sys->source_chain_lock);
|
||||
vlc_mutex_init(&sys->filter_chain_lock);
|
||||
sys->source_chain = filter_chain_New(spu, "sub source", false);
|
||||
sys->filter_chain = filter_chain_New(spu, "sub filter", false);
|
||||
sys->source_chain = filter_chain_New(spu, "sub source");
|
||||
sys->filter_chain = filter_chain_New(spu, "sub filter");
|
||||
|
||||
/* Load text and scale module */
|
||||
sys->text = SpuRenderCreateAndLoadText(spu);
|
||||
|
|
Loading…
Reference in New Issue