Commit 868cec58 authored by Jonathan Baecker's avatar Jonathan Baecker Committed by Michael Niedermayer

avdevice/decklink_common: fix COM initialization failure check

Signed-off-by: 's avatarJonathan Baecker <jonbae77@gmail.com>
Reviewed-by: 's avatarRamiro Polla <ramiro.polla@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 534f901f
...@@ -42,7 +42,7 @@ IDeckLinkIterator *CreateDeckLinkIteratorInstance(void) ...@@ -42,7 +42,7 @@ IDeckLinkIterator *CreateDeckLinkIteratorInstance(void)
{ {
IDeckLinkIterator *iter; IDeckLinkIterator *iter;
if (CoInitialize(NULL) != S_OK) { if (CoInitialize(NULL) < 0) {
av_log(NULL, AV_LOG_ERROR, "COM initialization failed.\n"); av_log(NULL, AV_LOG_ERROR, "COM initialization failed.\n");
return NULL; return NULL;
} }
......
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