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
f352d9de
Commit
f352d9de
authored
Apr 05, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Apr 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Send a notification when the filter graph clock changes.
parent
d51098ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
filtergraph.c
dlls/quartz/filtergraph.c
+19
-0
No files found.
dlls/quartz/filtergraph.c
View file @
f352d9de
...
...
@@ -190,6 +190,7 @@ typedef struct _IFilterGraphImpl {
int
EcCompleteCount
;
int
HandleEcComplete
;
int
HandleEcRepaint
;
int
HandleEcClockChanged
;
OAFilterState
state
;
CRITICAL_SECTION
cs
;
ITF_CACHE_ENTRY
ItfCacheEntries
[
MAX_ITF_CACHE_ENTRIES
];
...
...
@@ -4109,6 +4110,8 @@ static HRESULT WINAPI MediaEvent_CancelDefaultHandling(IMediaEventEx *iface,
This
->
HandleEcComplete
=
FALSE
;
else
if
(
lEvCode
==
EC_REPAINT
)
This
->
HandleEcRepaint
=
FALSE
;
else
if
(
lEvCode
==
EC_CLOCK_CHANGED
)
This
->
HandleEcClockChanged
=
FALSE
;
else
return
S_FALSE
;
...
...
@@ -4125,6 +4128,8 @@ static HRESULT WINAPI MediaEvent_RestoreDefaultHandling(IMediaEventEx *iface,
This
->
HandleEcComplete
=
TRUE
;
else
if
(
lEvCode
==
EC_REPAINT
)
This
->
HandleEcRepaint
=
TRUE
;
else
if
(
lEvCode
==
EC_CLOCK_CHANGED
)
This
->
HandleEcClockChanged
=
TRUE
;
else
return
S_FALSE
;
...
...
@@ -4293,6 +4298,19 @@ static HRESULT WINAPI MediaFilter_SetSyncSource(IMediaFilter *iface, IReferenceC
This
->
refClock
=
pClock
;
if
(
This
->
refClock
)
IReferenceClock_AddRef
(
This
->
refClock
);
if
(
This
->
HandleEcClockChanged
)
{
IMediaEventSink
*
pEventSink
;
HRESULT
eshr
;
eshr
=
IMediaFilter_QueryInterface
(
iface
,
&
IID_IMediaEventSink
,
(
LPVOID
)
&
pEventSink
);
if
(
SUCCEEDED
(
eshr
))
{
IMediaEventSink_Notify
(
pEventSink
,
EC_CLOCK_CHANGED
,
0
,
0
);
IMediaEventSink_Release
(
pEventSink
);
}
}
}
}
LeaveCriticalSection
(
&
This
->
cs
);
...
...
@@ -4594,6 +4612,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj)
fimpl
->
hEventCompletion
=
CreateEventW
(
0
,
TRUE
,
FALSE
,
0
);
fimpl
->
HandleEcComplete
=
TRUE
;
fimpl
->
HandleEcRepaint
=
TRUE
;
fimpl
->
HandleEcClockChanged
=
TRUE
;
fimpl
->
notif
.
hWnd
=
0
;
fimpl
->
notif
.
disabled
=
FALSE
;
fimpl
->
nRenderers
=
0
;
...
...
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