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
c6c44723
Commit
c6c44723
authored
Mar 14, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Create MediaStream filter when initialising AMMutiMediaStream.
parent
8d9655b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
amstream.c
dlls/amstream/amstream.c
+11
-0
No files found.
dlls/amstream/amstream.c
View file @
c6c44723
...
...
@@ -37,6 +37,7 @@ typedef struct {
IGraphBuilder
*
pFilterGraph
;
IMediaSeeking
*
media_seeking
;
IMediaControl
*
media_control
;
IBaseFilter
*
media_stream_filter
;
IPin
*
ipin
;
ULONG
nbStreams
;
IMediaStream
**
pStreams
;
...
...
@@ -118,6 +119,8 @@ static ULONG WINAPI IAMMultiMediaStreamImpl_Release(IAMMultiMediaStream* iface)
IMediaStream_Release
(
This
->
pStreams
[
i
]);
if
(
This
->
ipin
)
IPin_Release
(
This
->
ipin
);
if
(
This
->
media_stream_filter
)
IBaseFilter_Release
(
This
->
media_stream_filter
);
if
(
This
->
media_seeking
)
IMediaSeeking_Release
(
This
->
media_seeking
);
if
(
This
->
media_control
)
...
...
@@ -230,6 +233,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Initialize(IAMMultiMediaStream* if
{
IAMMultiMediaStreamImpl
*
This
=
impl_from_IAMMultiMediaStream
(
iface
);
HRESULT
hr
=
S_OK
;
const
WCHAR
filternameW
[]
=
{
'M'
,
'e'
,
'd'
,
'i'
,
'a'
,
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
'F'
,
'i'
,
'l'
,
't'
,
'e'
,
'r'
,
0
};
TRACE
(
"(%p/%p)->(%x,%x,%p)
\n
"
,
This
,
iface
,
(
DWORD
)
StreamType
,
dwFlags
,
pFilterGraph
);
...
...
@@ -249,10 +253,17 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Initialize(IAMMultiMediaStream* if
hr
=
IGraphBuilder_QueryInterface
(
This
->
pFilterGraph
,
&
IID_IMediaSeeking
,
(
void
**
)
&
This
->
media_seeking
);
if
(
SUCCEEDED
(
hr
))
IGraphBuilder_QueryInterface
(
This
->
pFilterGraph
,
&
IID_IMediaControl
,
(
void
**
)
&
This
->
media_control
);
if
(
SUCCEEDED
(
hr
))
hr
=
CoCreateInstance
(
&
CLSID_MediaStreamFilter
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
LPVOID
*
)
&
This
->
media_stream_filter
);
if
(
SUCCEEDED
(
hr
))
IGraphBuilder_AddFilter
(
This
->
pFilterGraph
,
This
->
media_stream_filter
,
filternameW
);
}
if
(
FAILED
(
hr
))
{
if
(
This
->
media_stream_filter
)
IBaseFilter_Release
(
This
->
media_stream_filter
);
This
->
media_stream_filter
=
NULL
;
if
(
This
->
media_seeking
)
IMediaSeeking_Release
(
This
->
media_seeking
);
This
->
media_seeking
=
NULL
;
...
...
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