[FFmpeg-cvslog] avdevice/decklink_common: fix COM initialization failure check
Jonathan Baecker
git at videolan.org
Wed Dec 3 18:47:43 CET 2014
ffmpeg | branch: master | Jonathan Baecker <jonbae77 at gmail.com> | Wed Dec 3 16:41:41 2014 +0100| [868cec5874543a56e485b7a17018ce7d9ce89299] | committer: Michael Niedermayer
avdevice/decklink_common: fix COM initialization failure check
Signed-off-by: Jonathan Baecker <jonbae77 at gmail.com>
Reviewed-by: Ramiro Polla <ramiro.polla at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=868cec5874543a56e485b7a17018ce7d9ce89299
---
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 6899bd2..07e1651 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;
}
More information about the ffmpeg-cvslog
mailing list