Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
b1f9acc6
Commit
b1f9acc6
authored
Mar 14, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Set a default sync source on the filtergraph.
Use the fallback system IReferenceClock, unless the app comes up with its own clock.
parent
136a4ebb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
filtergraph.c
dlls/quartz/filtergraph.c
+13
-2
No files found.
dlls/quartz/filtergraph.c
View file @
b1f9acc6
...
...
@@ -620,10 +620,20 @@ static HRESULT WINAPI FilterGraph2_Disconnect(IFilterGraph2 *iface,
static
HRESULT
WINAPI
FilterGraph2_SetDefaultSyncSource
(
IFilterGraph2
*
iface
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IFilterGraph2_vtbl
,
iface
);
IReferenceClock
*
pClock
=
NULL
;
HRESULT
hr
;
TRACE
(
"(%p/%p)->()
: stub !!!
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)->()
semi-stub
\n
"
,
iface
,
This
);
return
S_OK
;
hr
=
CoCreateInstance
(
&
CLSID_SystemClock
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IReferenceClock
,
(
LPVOID
*
)
&
pClock
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IMediaFilter_SetSyncSource
((
IMediaFilter
*
)
&
(
This
->
IMediaFilter_vtbl
),
pClock
);
IReferenceClock_Release
(
pClock
);
}
return
hr
;
}
static
HRESULT
GetFilterInfo
(
IMoniker
*
pMoniker
,
GUID
*
pclsid
,
VARIANT
*
pvar
)
...
...
@@ -4755,6 +4765,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj)
ERR
(
"Unable to create filter mapper (%x)
\n
"
,
hr
);
return
hr
;
}
IFilterGraph2_SetDefaultSyncSource
((
IFilterGraph2
*
)
fimpl
);
*
ppObj
=
fimpl
;
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