Commit e527a6f3 authored by Martin Storsjö's avatar Martin Storsjö Committed by Steve Lhomme

d3d11_adjust: Pass a non-const pointer to atomic_load

This fixes compilation with clang, which previously errored
out with this message:

error: address argument to atomic operation must be a pointer to non-const _Atomic
      type ('const atomic_int *' (aka 'const _Atomic(int) *') invalid)
    int level = atomic_load(&p_level->level);
                ^           ~~~~~~~~~~~~~~~

(cherry picked from commit c5161337)
parent c2f6cab0
......@@ -135,7 +135,7 @@ static int assert_ProcessorInput(filter_t *p_filter, picture_sys_t *p_sys_src)
static bool ApplyFilter( filter_sys_t *p_sys,
D3D11_VIDEO_PROCESSOR_FILTER filter,
const struct filter_level *p_level,
struct filter_level *p_level,
ID3D11VideoProcessorInputView *input,
ID3D11VideoProcessorOutputView *output,
const video_format_t *fmt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment