add_dio_link_enc_to_ctx
if (!add_dio_link_enc_to_ctx(dc, context, pool, pipe_ctx, stream))
if (!add_dio_link_enc_to_ctx(dc, context, dc->res_pool, pipe_ctx, pipe_ctx->stream))