Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ccbb31c1
Commit
ccbb31c1
authored
Sep 25, 2017
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qsv: Make sure the session is set with the latest version
It is needed to have the calls to MFXJoinSession succeed.
parent
516c4791
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
hwcontext_qsv.c
libavutil/hwcontext_qsv.c
+17
-0
No files found.
libavutil/hwcontext_qsv.c
View file @
ccbb31c1
...
@@ -1029,6 +1029,23 @@ static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
...
@@ -1029,6 +1029,23 @@ static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
goto
fail
;
goto
fail
;
}
}
err
=
MFXQueryVersion
(
hwctx
->
session
,
&
ver
);
if
(
err
!=
MFX_ERR_NONE
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error querying an MFX session: %d.
\n
"
,
err
);
ret
=
AVERROR_UNKNOWN
;
goto
fail
;
}
MFXClose
(
hwctx
->
session
);
err
=
MFXInit
(
implementation
,
&
ver
,
&
hwctx
->
session
);
if
(
err
!=
MFX_ERR_NONE
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error initializing an MFX session: %d.
\n
"
,
err
);
ret
=
AVERROR_UNKNOWN
;
goto
fail
;
}
err
=
MFXVideoCORE_SetHandle
(
hwctx
->
session
,
handle_type
,
handle
);
err
=
MFXVideoCORE_SetHandle
(
hwctx
->
session
,
handle_type
,
handle
);
if
(
err
!=
MFX_ERR_NONE
)
{
if
(
err
!=
MFX_ERR_NONE
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error setting child device handle: "
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error setting child device handle: "
...
...
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