summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Baecker <[email protected]>2014-12-03 16:41:41 +0100
committerMichael Niedermayer <[email protected]>2014-12-03 18:47:24 +0100
commit868cec5874543a56e485b7a17018ce7d9ce89299 (patch)
treee9b4c832da9db608fc20129232ec70f8aa0d4214
parent534f901fcaa43ea63f989801110a8286a9b89ccb (diff)
avdevice/decklink_common: fix COM initialization failure check
Signed-off-by: Jonathan Baecker <[email protected]> Reviewed-by: Ramiro Polla <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavdevice/decklink_common.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}