lavfi: allow user-provided execute() callbacks

This commit is contained in:
Anton Khirnov
2013-08-08 16:28:41 +02:00
parent 38e15df148
commit 0767bfd199
8 changed files with 69 additions and 15 deletions

View File

@ -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;