avdevice/decklink_common: fix COM initialization failure check
authorJonathan Baecker <jonbae77@gmail.com>
Wed, 3 Dec 2014 15:41:41 +0000 (16:41 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Dec 2014 17:47:24 +0000 (18:47 +0100)
Signed-off-by: Jonathan Baecker <jonbae77@gmail.com>
Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/decklink_common.cpp

index 6899bd2..07e1651 100644 (file)
@@ -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;
     }