Browse Source

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>
tags/n3.0
FearThe1337 Michael Niedermayer 10 years ago
parent
commit
c33ffc7b21
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/dshow.c

+ 1
- 1
libavdevice/dshow.c View File

@@ -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)


Loading…
Cancel
Save