summaryrefslogtreecommitdiff
path: root/libavdevice/decklink_common.cpp
diff options
context:
space:
mode:
authorJonathan Baecker <jonbae77@gmail.com>2014-12-03 16:41:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-03 18:47:24 +0100
commit868cec5874543a56e485b7a17018ce7d9ce89299 (patch)
treee9b4c832da9db608fc20129232ec70f8aa0d4214 /libavdevice/decklink_common.cpp
parent534f901fcaa43ea63f989801110a8286a9b89ccb (diff)
downloadffmpeg-868cec5874543a56e485b7a17018ce7d9ce89299.tar.gz
avdevice/decklink_common: fix COM initialization failure check
Signed-off-by: Jonathan Baecker <jonbae77@gmail.com> Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/decklink_common.cpp')
-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;
}