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
804a9d14
Commit
804a9d14
authored
Dec 06, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Remove default clock if the providing filter is removed from filtergraph.
parent
c12d9ff8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
filtergraph.c
dlls/quartz/filtergraph.c
+13
-0
No files found.
dlls/quartz/filtergraph.c
View file @
804a9d14
...
...
@@ -184,6 +184,7 @@ typedef struct _IFilterGraphImpl {
int
filterCapacity
;
LONG
nameIndex
;
IReferenceClock
*
refClock
;
IBaseFilter
*
refClockProvider
;
EventsQueue
evqueue
;
HANDLE
hEventCompletion
;
int
CompletionStatus
;
...
...
@@ -484,6 +485,12 @@ static HRESULT WINAPI FilterGraph2_RemoveFilter(IFilterGraph2 *iface, IBaseFilte
IEnumPins
*
penumpins
=
NULL
;
FILTER_STATE
state
;
if
(
This
->
defaultclock
&&
This
->
refClockProvider
==
pFilter
)
{
IMediaFilter_SetSyncSource
((
IMediaFilter
*
)
&
This
->
IMediaFilter_vtbl
,
NULL
);
This
->
defaultclock
=
1
;
}
TRACE
(
"Removing filter %s
\n
"
,
debugstr_w
(
This
->
pFilterNames
[
i
]));
IBaseFilter_GetState
(
pFilter
,
0
,
&
state
);
if
(
state
==
State_Running
)
...
...
@@ -781,7 +788,12 @@ static HRESULT WINAPI FilterGraph2_SetDefaultSyncSource(IFilterGraph2 *iface) {
}
if
(
!
pClock
)
{
hr
=
CoCreateInstance
(
&
CLSID_SystemClock
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IReferenceClock
,
(
LPVOID
*
)
&
pClock
);
This
->
refClockProvider
=
NULL
;
}
else
This
->
refClockProvider
=
This
->
ppFiltersInGraph
[
i
];
if
(
SUCCEEDED
(
hr
))
{
...
...
@@ -5485,6 +5497,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj)
fimpl
->
notif
.
disabled
=
FALSE
;
fimpl
->
nRenderers
=
0
;
fimpl
->
EcCompleteCount
=
0
;
fimpl
->
refClockProvider
=
NULL
;
fimpl
->
state
=
State_Stopped
;
EventsQueue_Init
(
&
fimpl
->
evqueue
);
InitializeCriticalSection
(
&
fimpl
->
cs
);
...
...
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