Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
26476fcf
Commit
26476fcf
authored
Mar 11, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Return void from renderer_disconnect.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4bede3b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
vmr9.c
dlls/quartz/vmr9.c
+2
-7
strmbase.h
include/wine/strmbase.h
+1
-1
No files found.
dlls/quartz/vmr9.c
View file @
26476fcf
...
...
@@ -512,16 +512,12 @@ static HRESULT vmr_connect(struct strmbase_renderer *iface, const AM_MEDIA_TYPE
return
hr
;
}
static
HRESULT
vmr_disconnect
(
struct
strmbase_renderer
*
This
)
static
void
vmr_disconnect
(
struct
strmbase_renderer
*
This
)
{
struct
quartz_vmr
*
filter
=
impl_from_IBaseFilter
(
&
This
->
filter
.
IBaseFilter_iface
);
HRESULT
hr
=
S_OK
;
DWORD
i
;
if
(
!
filter
->
mode
)
return
S_FALSE
;
if
(
filter
->
allocator
&&
filter
->
presenter
)
if
(
filter
->
mode
&&
filter
->
allocator
&&
filter
->
presenter
)
{
for
(
i
=
0
;
i
<
filter
->
num_surfaces
;
++
i
)
IDirect3DSurface9_Release
(
filter
->
surfaces
[
i
]);
...
...
@@ -530,7 +526,6 @@ static HRESULT vmr_disconnect(struct strmbase_renderer *This)
IVMRSurfaceAllocator9_TerminateDevice
(
filter
->
allocator
,
filter
->
cookie
);
filter
->
num_surfaces
=
0
;
}
return
hr
;
}
static
void
vmr_free
(
struct
quartz_vmr
*
filter
)
...
...
include/wine/strmbase.h
View file @
26476fcf
...
...
@@ -313,7 +313,7 @@ struct strmbase_renderer_ops
void
(
*
renderer_start_stream
)(
struct
strmbase_renderer
*
iface
);
void
(
*
renderer_stop_stream
)(
struct
strmbase_renderer
*
iface
);
HRESULT
(
*
renderer_connect
)(
struct
strmbase_renderer
*
iface
,
const
AM_MEDIA_TYPE
*
mt
);
HRESULT
(
*
renderer_disconnect
)(
struct
strmbase_renderer
*
iface
);
void
(
*
renderer_disconnect
)(
struct
strmbase_renderer
*
iface
);
void
(
*
renderer_destroy
)(
struct
strmbase_renderer
*
iface
);
HRESULT
(
*
renderer_query_interface
)(
struct
strmbase_renderer
*
iface
,
REFIID
iid
,
void
**
out
);
HRESULT
(
*
renderer_pin_query_interface
)(
struct
strmbase_renderer
*
iface
,
REFIID
iid
,
void
**
out
);
...
...
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