[libav-devel] [PATCH 3/5] pthread_slice: rename ThreadContext -> SliceThreadContext

Vittorio Giovara vittorio.giovara at gmail.com
Sun Nov 3 12:10:25 CET 2013


On Sun, Oct 27, 2013 at 1:17 PM, Anton Khirnov <anton at khirnov.net> wrote:
> This should prevent confusion with frame threading.
> ---
>  libavcodec/pthread_slice.c |   18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
>

The patch looks ok, maybe you could just add one space before the '='
in these two chunks:

> @@ -125,7 +125,7 @@ static av_always_inline void thread_park_workers(ThreadContext *c, int thread_co
>
>  static int thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size)
>  {
> -    ThreadContext *c= avctx->thread_opaque;
> +    SliceThreadContext *c= avctx->thread_opaque;
>      int dummy_ret;
>
>      if (!(avctx->active_thread_type&FF_THREAD_SLICE) || avctx->thread_count <= 1)
> @@ -158,7 +158,7 @@ static int thread_execute(AVCodecContext *avctx, action_func* func, void *arg, i
>
>  static int thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
>  {
> -    ThreadContext *c= avctx->thread_opaque;
> +    SliceThreadContext *c= avctx->thread_opaque;
>      c->func2 = func2;
>      return thread_execute(avctx, NULL, arg, ret, job_count, 0);
>  }

Vittorio


More information about the libav-devel mailing list