History

Merge commit '50612484e058e8b241f0528584d64d9d2ccebf12'

* commit '50612484e058e8b241f0528584d64d9d2ccebf12': pthread: Rename thread_init to avoid symbol collision Conflicts: libavcodec/pthread.c libavfilter/pthread.c

Michael Niedermayer committed 13 years ago

Commit 10336ca2 parents 9836f47 50612482 files · +4 −4Browse files

Unified · Split

2 files
  1. libavcodec/pthread.c +2 −2
  2. libavfilter/pthread.c +2 −2
libavcodec/pthread.c+2−2
@@ -249,7 +249,7 @@ static int avcodec_thread_execute2(AVCodecContext *avctx, action_func2* func2, v · 248 unmodified lines
249249 return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0);
250250 }
251251
252−static int avcodec_thread_init(AVCodecContext *avctx)
252+static int thread_init_internal(AVCodecContext *avctx)
253253 {
254254 int i;
255255 ThreadContext *c;
@@ -1103,7 +1103,7 @@ int ff_thread_init(AVCodecContext *avctx) · 847 unmodified lines
11031103 validate_thread_parameters(avctx);
11041104
11051105 if (avctx->active_thread_type&FF_THREAD_SLICE)
1106− return avcodec_thread_init(avctx);
1106+ return thread_init_internal(avctx);
11071107 else if (avctx->active_thread_type&FF_THREAD_FRAME)
11081108 return frame_thread_init(avctx);
11091109
libavfilter/pthread.c+2−2
@@ -146,7 +146,7 @@ static int thread_execute(AVFilterContext *ctx, action_func *func, · 145 unmodified lines
146146 return 0;
147147 }
148148
149−static int avfilter_thread_init(ThreadContext *c, int nb_threads)
149+static int thread_init_internal(ThreadContext *c, int nb_threads)
150150 {
151151 int i, ret;
152152
@@ -208,7 +208,7 @@ int ff_graph_thread_init(AVFilterGraph *graph) · 55 unmodified lines
208208 if (!graph->internal->thread)
209209 return AVERROR(ENOMEM);
210210
211− ret = avfilter_thread_init(graph->internal->thread, graph->nb_threads);
211+ ret = thread_init_internal(graph->internal->thread, graph->nb_threads);
212212 if (ret <= 1) {
213213 av_freep(&graph->internal->thread);
214214 graph->thread_type = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t