ffmpeg | branch: master | Jonathan Baecker <jonba...@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 <jonba...@gmail.com> Reviewed-by: Ramiro Polla <ramiro.po...@gmail.com> Signed-off-by: Michael Niedermayer <michae...@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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog