* commit '50612484e058e8b241f0528584d64d9d2ccebf12':
pthread: Rename thread_init to avoid symbol collision
Conflicts:
libavcodec/pthread.c
libavfilter/pthread.c
See: 674d8a9629
Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
| @@ -249,7 +249,7 @@ static int avcodec_thread_execute2(AVCodecContext *avctx, action_func2* func2, v | |||||
| return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0); | return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0); | ||||
| } | } | ||||
| static int avcodec_thread_init(AVCodecContext *avctx) | |||||
| static int thread_init_internal(AVCodecContext *avctx) | |||||
| { | { | ||||
| int i; | int i; | ||||
| ThreadContext *c; | ThreadContext *c; | ||||
| @@ -1103,7 +1103,7 @@ int ff_thread_init(AVCodecContext *avctx) | |||||
| validate_thread_parameters(avctx); | validate_thread_parameters(avctx); | ||||
| if (avctx->active_thread_type&FF_THREAD_SLICE) | if (avctx->active_thread_type&FF_THREAD_SLICE) | ||||
| return avcodec_thread_init(avctx); | |||||
| return thread_init_internal(avctx); | |||||
| else if (avctx->active_thread_type&FF_THREAD_FRAME) | else if (avctx->active_thread_type&FF_THREAD_FRAME) | ||||
| return frame_thread_init(avctx); | return frame_thread_init(avctx); | ||||
| @@ -146,7 +146,7 @@ static int thread_execute(AVFilterContext *ctx, action_func *func, | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| static int avfilter_thread_init(ThreadContext *c, int nb_threads) | |||||
| static int thread_init_internal(ThreadContext *c, int nb_threads) | |||||
| { | { | ||||
| int i, ret; | int i, ret; | ||||
| @@ -208,7 +208,7 @@ int ff_graph_thread_init(AVFilterGraph *graph) | |||||
| if (!graph->internal->thread) | if (!graph->internal->thread) | ||||
| return AVERROR(ENOMEM); | return AVERROR(ENOMEM); | ||||
| ret = avfilter_thread_init(graph->internal->thread, graph->nb_threads); | |||||
| ret = thread_init_internal(graph->internal->thread, graph->nb_threads); | |||||
| if (ret <= 1) { | if (ret <= 1) { | ||||
| av_freep(&graph->internal->thread); | av_freep(&graph->internal->thread); | ||||
| graph->thread_type = 0; | graph->thread_type = 0; | ||||