diff options
author | James Zern <jzern@google.com> | 2017-06-27 20:32:15 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2017-07-05 21:07:00 -0700 |
commit | 48c4a038eb8322824927e86e0f9fc215c3cbc1e2 (patch) | |
tree | 167a9fae50cbd6b89c53cae7f52685b454f50c7b /vp9/vp9_dx_iface.c | |
parent | af3cab7b245fd8f60ed6a0699f6321ac19986515 (diff) | |
download | libvpx-48c4a038eb8322824927e86e0f9fc215c3cbc1e2.tar libvpx-48c4a038eb8322824927e86e0f9fc215c3cbc1e2.tar.gz libvpx-48c4a038eb8322824927e86e0f9fc215c3cbc1e2.tar.bz2 libvpx-48c4a038eb8322824927e86e0f9fc215c3cbc1e2.zip |
vp9: remove (un)lock_buffer_pool
there is no threaded access to this pool after the removal of
frame_parallel_decode
BUG=webm:1395
Change-Id: I710769b87102edc898c59eb9a2e7a91d8c49107f
Diffstat (limited to 'vp9/vp9_dx_iface.c')
-rw-r--r-- | vp9/vp9_dx_iface.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/vp9/vp9_dx_iface.c b/vp9/vp9_dx_iface.c index 35070d6f5..cf3f6df44 100644 --- a/vp9/vp9_dx_iface.c +++ b/vp9/vp9_dx_iface.c @@ -81,9 +81,6 @@ static vpx_codec_err_t decoder_destroy(vpx_codec_alg_priv_t *ctx) { #endif vpx_free(frame_worker_data); } -#if CONFIG_MULTITHREAD - pthread_mutex_destroy(&ctx->buffer_pool->pool_mutex); -#endif } if (ctx->buffer_pool) { @@ -296,13 +293,6 @@ static vpx_codec_err_t init_decoder(vpx_codec_alg_priv_t *ctx) { ctx->buffer_pool = (BufferPool *)vpx_calloc(1, sizeof(BufferPool)); if (ctx->buffer_pool == NULL) return VPX_CODEC_MEM_ERROR; -#if CONFIG_MULTITHREAD - if (pthread_mutex_init(&ctx->buffer_pool->pool_mutex, NULL)) { - set_error_detail(ctx, "Failed to allocate buffer pool mutex"); - return VPX_CODEC_MEM_ERROR; - } -#endif - ctx->frame_workers = (VPxWorker *)vpx_malloc(ctx->num_frame_workers * sizeof(*ctx->frame_workers)); if (ctx->frame_workers == NULL) { |