Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
21608bc3
Commit
21608bc3
authored
Nov 28, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_opencl: Use correct function to enumerate devices
Also assert that all required functions are present.
parent
2f6b1806
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
hwcontext_opencl.c
libavutil/hwcontext_opencl.c
+6
-3
No files found.
libavutil/hwcontext_opencl.c
View file @
21608bc3
...
@@ -500,6 +500,9 @@ static int opencl_device_create_internal(AVHWDeviceContext *hwdev,
...
@@ -500,6 +500,9 @@ static int opencl_device_create_internal(AVHWDeviceContext *hwdev,
*
device_name_src
=
NULL
;
*
device_name_src
=
NULL
;
int
err
,
found
,
p
,
d
;
int
err
,
found
,
p
,
d
;
av_assert0
(
selector
->
enumerate_platforms
&&
selector
->
enumerate_devices
);
err
=
selector
->
enumerate_platforms
(
hwdev
,
&
nb_platforms
,
&
platforms
,
err
=
selector
->
enumerate_platforms
(
hwdev
,
&
nb_platforms
,
&
platforms
,
selector
->
context
);
selector
->
context
);
if
(
err
)
if
(
err
)
...
@@ -531,7 +534,7 @@ static int opencl_device_create_internal(AVHWDeviceContext *hwdev,
...
@@ -531,7 +534,7 @@ static int opencl_device_create_internal(AVHWDeviceContext *hwdev,
continue
;
continue
;
}
}
err
=
opencl_
enumerate_devices
(
hwdev
,
platforms
[
p
],
platform_name
,
err
=
selector
->
enumerate_devices
(
hwdev
,
platforms
[
p
],
platform_name
,
&
nb_devices
,
&
devices
,
&
nb_devices
,
&
devices
,
selector
->
context
);
selector
->
context
);
if
(
err
<
0
)
if
(
err
<
0
)
...
...
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