Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9177e80d
Commit
9177e80d
authored
Nov 26, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/session: Propagate allocator initialization failure code (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8315486d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
session.c
dlls/mf/session.c
+8
-2
No files found.
dlls/mf/session.c
View file @
9177e80d
...
...
@@ -794,6 +794,7 @@ static void session_shutdown_current_topology(struct media_session *session)
IMFMediaSink
*
sink
;
IUnknown
*
object
;
WORD
idx
=
0
;
HRESULT
hr
;
topology
=
session
->
presentation
.
current_topology
;
force_shutdown
=
session
->
state
==
SESSION_STATE_SHUT_DOWN
;
...
...
@@ -813,7 +814,8 @@ static void session_shutdown_current_topology(struct media_session *session)
if
(
SUCCEEDED
(
IMFTopologyNode_GetUnknown
(
node
,
&
_MF_TOPONODE_IMFActivate
,
&
IID_IMFActivate
,
(
void
**
)
&
activate
)))
{
IMFActivate_ShutdownObject
(
activate
);
if
(
FAILED
(
hr
=
IMFActivate_ShutdownObject
(
activate
)))
WARN
(
"Failed to shut down activation object for the sink, hr %#x.
\n
"
,
hr
);
IMFActivate_Release
(
activate
);
}
else
if
(
SUCCEEDED
(
IMFTopologyNode_GetObject
(
node
,
&
object
)))
...
...
@@ -1392,7 +1394,11 @@ static HRESULT session_append_node(struct media_session *session, IMFTopologyNod
if
(
SUCCEEDED
(
MFGetService
(
topo_node
->
object
.
object
,
&
MR_VIDEO_ACCELERATION_SERVICE
,
&
IID_IMFVideoSampleAllocator
,
(
void
**
)
&
topo_node
->
u
.
sink
.
allocator
)))
{
IMFVideoSampleAllocator_InitializeSampleAllocator
(
topo_node
->
u
.
sink
.
allocator
,
2
,
media_type
);
if
(
FAILED
(
hr
=
IMFVideoSampleAllocator_InitializeSampleAllocator
(
topo_node
->
u
.
sink
.
allocator
,
2
,
media_type
)))
{
WARN
(
"Failed to initialize sample allocator for the stream, hr %#x.
\n
"
,
hr
);
}
IMFVideoSampleAllocator_QueryInterface
(
topo_node
->
u
.
sink
.
allocator
,
&
IID_IMFVideoSampleAllocatorCallback
,
(
void
**
)
&
topo_node
->
u
.
sink
.
allocator_cb
);
IMFVideoSampleAllocatorCallback_SetCallback
(
topo_node
->
u
.
sink
.
allocator_cb
,
...
...
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