[FFmpeg-cvslog] Rename thread_init() in libavcodec and libavfilter as library_thread_init( ).
Carl Eugen Hoyos
git at videolan.org
Sun Jun 30 21:24:26 CEST 2013
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jun 30 13:34:46 2013 +0200| [674d8a9629609a17fd6916164556cb012d6e6a1c] | committer: Carl Eugen Hoyos
Rename thread_init() in libavcodec and libavfilter as library_thread_init().
The aix header sys/thread.h contains a definition for thread_init().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=674d8a9629609a17fd6916164556cb012d6e6a1c
---
libavcodec/pthread.c | 4 ++--
libavfilter/pthread.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 7404f87..af3ef2d 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -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);
}
-static int thread_init(AVCodecContext *avctx)
+static int avcodec_thread_init(AVCodecContext *avctx)
{
int i;
ThreadContext *c;
@@ -1103,7 +1103,7 @@ int ff_thread_init(AVCodecContext *avctx)
validate_thread_parameters(avctx);
if (avctx->active_thread_type&FF_THREAD_SLICE)
- return thread_init(avctx);
+ return avcodec_thread_init(avctx);
else if (avctx->active_thread_type&FF_THREAD_FRAME)
return frame_thread_init(avctx);
diff --git a/libavfilter/pthread.c b/libavfilter/pthread.c
index eb40f00..29faa28 100644
--- a/libavfilter/pthread.c
+++ b/libavfilter/pthread.c
@@ -146,7 +146,7 @@ static int thread_execute(AVFilterContext *ctx, action_func *func,
return 0;
}
-static int thread_init(ThreadContext *c, int nb_threads)
+static int avfilter_thread_init(ThreadContext *c, int nb_threads)
{
int i, ret;
@@ -208,7 +208,7 @@ int ff_graph_thread_init(AVFilterGraph *graph)
if (!graph->internal->thread)
return AVERROR(ENOMEM);
- ret = thread_init(graph->internal->thread, graph->nb_threads);
+ ret = avfilter_thread_init(graph->internal->thread, graph->nb_threads);
if (ret <= 1) {
av_freep(&graph->internal->thread);
graph->thread_type = 0;
More information about the ffmpeg-cvslog
mailing list