1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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: FearThe1337 <git@fearthe1337.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
FearThe1337 2016-02-13 16:55:02 +01:00 committed by Michael Niedermayer
parent 4099e4a77d
commit c33ffc7b21

View File

@ -240,7 +240,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
int i; int i;
r = CoGetMalloc(1, &co_malloc); r = CoGetMalloc(1, &co_malloc);
if (r = S_OK) if (r != S_OK)
goto fail1; goto fail1;
r = CreateBindCtx(0, &bind_ctx); r = CreateBindCtx(0, &bind_ctx);
if (r != S_OK) if (r != S_OK)