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
753d007c
Commit
753d007c
authored
Mar 04, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Simplify IAMMultiMediaStream::GetFilterGraph().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0eea1b09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
multimedia.c
dlls/amstream/multimedia.c
+7
-8
No files found.
dlls/amstream/multimedia.c
View file @
753d007c
...
...
@@ -250,20 +250,19 @@ static HRESULT WINAPI multimedia_stream_Initialize(IAMMultiMediaStream *iface,
return
hr
;
}
static
HRESULT
WINAPI
multimedia_stream_GetFilterGraph
(
IAMMultiMediaStream
*
iface
,
IGraphBuilder
**
ppGraphBuilder
)
static
HRESULT
WINAPI
multimedia_stream_GetFilterGraph
(
IAMMultiMediaStream
*
iface
,
IGraphBuilder
**
graph
)
{
struct
multimedia_stream
*
This
=
impl_from_IAMMultiMediaStream
(
iface
);
struct
multimedia_stream
*
mmstream
=
impl_from_IAMMultiMediaStream
(
iface
);
TRACE
(
"
(%p/%p)->(%p)
\n
"
,
This
,
iface
,
ppGraphBuilder
);
TRACE
(
"
mmstream %p, graph %p.
\n
"
,
mmstream
,
graph
);
if
(
!
ppGraphBuilder
)
if
(
!
graph
)
return
E_POINTER
;
if
(
This
->
pFilterGraph
)
return
IGraphBuilder_QueryInterface
(
This
->
pFilterGraph
,
&
IID_IGraphBuilder
,
(
void
**
)
ppGraphBuilder
);
if
(
mmstream
->
pFilterGraph
)
IGraphBuilder_AddRef
(
*
graph
=
mmstream
->
pFilterGraph
);
else
*
ppGraphBuilder
=
NULL
;
*
graph
=
NULL
;
return
S_OK
;
}
...
...
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