From 868cec5874543a56e485b7a17018ce7d9ce89299 Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Wed, 3 Dec 2014 16:41:41 +0100 Subject: [PATCH] avdevice/decklink_common: fix COM initialization failure check Signed-off-by: Jonathan Baecker Reviewed-by: Ramiro Polla Signed-off-by: Michael Niedermayer --- libavdevice/decklink_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp index 6899bd29c9..07e16516cf 100644 --- a/libavdevice/decklink_common.cpp +++ b/libavdevice/decklink_common.cpp @@ -42,7 +42,7 @@ IDeckLinkIterator *CreateDeckLinkIteratorInstance(void) { IDeckLinkIterator *iter; - if (CoInitialize(NULL) != S_OK) { + if (CoInitialize(NULL) < 0) { av_log(NULL, AV_LOG_ERROR, "COM initialization failed.\n"); return NULL; }