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
6992b762
Commit
6992b762
authored
Mar 11, 2023
by
Shaun Ren
Committed by
Alexandre Julliard
Mar 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Set filter sync source in FilterGraph2_AddFilter.
parent
320c688e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
filtergraph.c
dlls/quartz/filtergraph.c
+2
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+7
-1
No files found.
dlls/quartz/filtergraph.c
View file @
6992b762
...
...
@@ -663,6 +663,8 @@ static HRESULT WINAPI FilterGraph2_AddFilter(IFilterGraph2 *iface,
return
hr
;
}
IBaseFilter_SetSyncSource
(
filter
,
graph
->
refClock
);
IBaseFilter_AddRef
(
entry
->
filter
=
filter
);
list_add_head
(
&
graph
->
filters
,
&
entry
->
entry
);
...
...
dlls/quartz/tests/filtergraph.c
View file @
6992b762
...
...
@@ -3314,7 +3314,7 @@ static void test_connect_direct(void)
static
void
test_sync_source
(
void
)
{
struct
testfilter
filter1
,
filter2
;
struct
testfilter
filter1
,
filter2
,
filter3
;
IFilterGraph2
*
graph
=
create_graph
();
IReferenceClock
*
systemclock
,
*
clock
;
...
...
@@ -3326,6 +3326,7 @@ static void test_sync_source(void)
testfilter_init
(
&
filter1
,
NULL
,
0
);
testfilter_init
(
&
filter2
,
NULL
,
0
);
testfilter_init
(
&
filter3
,
NULL
,
0
);
IFilterGraph2_AddFilter
(
graph
,
&
filter1
.
IBaseFilter_iface
,
NULL
);
IFilterGraph2_AddFilter
(
graph
,
&
filter2
.
IBaseFilter_iface
,
NULL
);
...
...
@@ -3346,10 +3347,14 @@ static void test_sync_source(void)
ok
(
clock
==
systemclock
,
"Got clock %p.
\n
"
,
clock
);
IReferenceClock_Release
(
clock
);
IFilterGraph2_AddFilter
(
graph
,
&
filter3
.
IBaseFilter_iface
,
NULL
);
ok
(
filter3
.
clock
==
systemclock
,
"Got clock %p.
\n
"
,
filter3
.
clock
);
hr
=
IMediaFilter_SetSyncSource
(
filter
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
!
filter1
.
clock
,
"Got clock %p.
\n
"
,
filter1
.
clock
);
ok
(
!
filter2
.
clock
,
"Got clock %p.
\n
"
,
filter2
.
clock
);
ok
(
!
filter3
.
clock
,
"Got clock %p.
\n
"
,
filter3
.
clock
);
hr
=
IMediaFilter_GetSyncSource
(
filter
,
&
clock
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
@@ -3361,6 +3366,7 @@ static void test_sync_source(void)
ok
(
!
ref
,
"Got outstanding refcount %ld
\n
"
,
ref
);
ok
(
filter1
.
ref
==
1
,
"Got outstanding refcount %ld.
\n
"
,
filter1
.
ref
);
ok
(
filter2
.
ref
==
1
,
"Got outstanding refcount %ld.
\n
"
,
filter2
.
ref
);
ok
(
filter3
.
ref
==
1
,
"Got outstanding refcount %ld.
\n
"
,
filter3
.
ref
);
}
#define check_filter_state(a, b) check_filter_state_(__LINE__, a, b)
...
...
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