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
c5faf158
Commit
c5faf158
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: Get and store event for streams render completion.
parent
c6c44723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
amstream.c
dlls/amstream/amstream.c
+12
-0
No files found.
dlls/amstream/amstream.c
View file @
c5faf158
...
...
@@ -42,6 +42,7 @@ typedef struct {
ULONG
nbStreams
;
IMediaStream
**
pStreams
;
STREAM_TYPE
StreamType
;
OAEVENT
event
;
}
IAMMultiMediaStreamImpl
;
static
inline
IAMMultiMediaStreamImpl
*
impl_from_IAMMultiMediaStream
(
IAMMultiMediaStream
*
iface
)
...
...
@@ -257,6 +258,17 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Initialize(IAMMultiMediaStream* if
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
(
SUCCEEDED
(
hr
))
{
IMediaEventEx
*
media_event
=
NULL
;
hr
=
IGraphBuilder_QueryInterface
(
This
->
pFilterGraph
,
&
IID_IMediaEventEx
,
(
void
**
)
&
media_event
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMediaEventEx_GetEventHandle
(
media_event
,
&
This
->
event
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMediaEventEx_SetNotifyFlags
(
media_event
,
AM_MEDIAEVENT_NONOTIFY
);
if
(
media_event
)
IMediaEventEx_Release
(
media_event
);
}
}
if
(
FAILED
(
hr
))
...
...
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