Commit c33ffc7b authored by FearThe1337's avatar FearThe1337 Committed by Michael Niedermayer

libavdevice/dshow.c: Correct CoGetMalloc check

Current if statement would always be false due to assigning the value of
S_OK which equals 0.
Signed-off-by: 's avatarFearThe1337 <git@fearthe1337.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4099e4a7
......@@ -240,7 +240,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
int i;
r = CoGetMalloc(1, &co_malloc);
if (r = S_OK)
if (r != S_OK)
goto fail1;
r = CreateBindCtx(0, &bind_ctx);
if (r != S_OK)
......
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