diff options
author | Jonathan Baecker <jonbae77@gmail.com> | 2014-12-03 16:41:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-03 18:47:24 +0100 |
commit | 868cec5874543a56e485b7a17018ce7d9ce89299 (patch) | |
tree | e9b4c832da9db608fc20129232ec70f8aa0d4214 | |
parent | 534f901fcaa43ea63f989801110a8286a9b89ccb (diff) | |
download | ffmpeg-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>
-rw-r--r-- | libavdevice/decklink_common.cpp | 2 |
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; } |