Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
a6f6726a
Commit
a6f6726a
authored
Oct 08, 2020
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/decklink: warn about too old decklink API version
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
acaf6c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
decklink_common.cpp
libavdevice/decklink_common.cpp
+22
-1
No files found.
libavdevice/decklink_common.cpp
View file @
a6f6726a
...
...
@@ -70,9 +70,30 @@ static IDeckLinkIterator *decklink_create_iterator(AVFormatContext *avctx)
#else
iter
=
CreateDeckLinkIteratorInstance
();
#endif
if
(
!
iter
)
if
(
!
iter
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Could not create DeckLink iterator. "
"Make sure you have DeckLink drivers "
BLACKMAGIC_DECKLINK_API_VERSION_STRING
" or newer installed.
\n
"
);
}
else
{
IDeckLinkAPIInformation
*
api
;
int64_t
version
;
#ifdef _WIN32
if
(
CoCreateInstance
(
CLSID_CDeckLinkAPIInformation
,
NULL
,
CLSCTX_ALL
,
IID_IDeckLinkAPIInformation
,
(
void
**
)
&
api
)
!=
S_OK
)
{
api
=
NULL
;
}
#else
api
=
CreateDeckLinkAPIInformationInstance
();
#endif
if
(
api
&&
api
->
GetInt
(
BMDDeckLinkAPIVersion
,
&
version
)
==
S_OK
)
{
if
(
version
<
BLACKMAGIC_DECKLINK_API_VERSION
)
av_log
(
avctx
,
AV_LOG_WARNING
,
"Installed DeckLink drivers are too old and may be incompatible with the SDK this module was built against. "
"Make sure you have DeckLink drivers "
BLACKMAGIC_DECKLINK_API_VERSION_STRING
" or newer installed.
\n
"
);
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to check installed DeckLink API version.
\n
"
);
}
if
(
api
)
api
->
Release
();
}
return
iter
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment