lavfi: allow user-provided execute() callbacks
This commit is contained in:
@ -43,7 +43,7 @@ typedef struct ThreadContext {
|
||||
|
||||
int nb_threads;
|
||||
pthread_t *workers;
|
||||
action_func *func;
|
||||
avfilter_action_func *func;
|
||||
|
||||
/* per-execute perameters */
|
||||
AVFilterContext *ctx;
|
||||
@ -114,7 +114,7 @@ static void slice_thread_park_workers(ThreadContext *c)
|
||||
pthread_mutex_unlock(&c->current_job_lock);
|
||||
}
|
||||
|
||||
static int thread_execute(AVFilterContext *ctx, action_func *func,
|
||||
static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func,
|
||||
void *arg, int *ret, int nb_jobs)
|
||||
{
|
||||
ThreadContext *c = ctx->graph->internal->thread;
|
||||
|
Reference in New Issue
Block a user