[FFmpeg-devel] Patch for device list error in decklink_common.cpp
Ramiro Polla
ramiro.polla at gmail.com
Wed Dec 3 18:29:37 CET 2014
On 03.12.2014 16:44, Jon bae wrote:
> Ok finally... Here now only the first line changed. Sorry for the mess, I
> 'm not the right person for that.
> From 2cddda59076b2ac5a539f7016c0aa1883d37c6d8 Mon Sep 17 00:00:00 2001
> From: Jonathan Baecker <jonbae77 at gmail.com>
> Date: Wed, 3 Dec 2014 16:41:41 +0100
> Subject: [PATCH] fix COM initialization failed
>
> Signed-off-by: Jonathan Baecker <jonbae77 at gmail.com>
> ---
> 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;
> }
LGTM. Thanks for submitting the patches!
More information about the ffmpeg-devel
mailing list