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
facbd058
Commit
facbd058
authored
Oct 21, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/filtergraph: Set the current position in IMediaFilter::Stop().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
539fa692
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
filtergraph.c
dlls/quartz/filtergraph.c
+4
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+2
-2
No files found.
dlls/quartz/filtergraph.c
View file @
facbd058
...
@@ -5207,6 +5207,10 @@ static HRESULT WINAPI MediaFilter_Stop(IMediaFilter *iface)
...
@@ -5207,6 +5207,10 @@ static HRESULT WINAPI MediaFilter_Stop(IMediaFilter *iface)
SendFilterMessage
(
graph
,
SendStop
,
0
);
SendFilterMessage
(
graph
,
SendStop
,
0
);
graph
->
state
=
State_Stopped
;
graph
->
state
=
State_Stopped
;
/* Update the current position, probably to synchronize multiple streams. */
IMediaSeeking_SetPositions
(
&
graph
->
IMediaSeeking_iface
,
&
graph
->
current_pos
,
AM_SEEKING_AbsolutePositioning
,
NULL
,
AM_SEEKING_NoPositioning
);
LeaveCriticalSection
(
&
graph
->
cs
);
LeaveCriticalSection
(
&
graph
->
cs
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/quartz/tests/filtergraph.c
View file @
facbd058
...
@@ -3952,7 +3952,7 @@ static void test_graph_seeking(void)
...
@@ -3952,7 +3952,7 @@ static void test_graph_seeking(void)
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaSeeking_GetCurrentPosition
(
seeking
,
&
time
);
hr
=
IMediaSeeking_GetCurrentPosition
(
seeking
,
&
time
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
time
==
12340000
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
ok
(
time
==
12340000
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
hr
=
IMediaFilter_SetSyncSource
(
filter
,
NULL
);
hr
=
IMediaFilter_SetSyncSource
(
filter
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
...
@@ -3968,7 +3968,7 @@ static void test_graph_seeking(void)
...
@@ -3968,7 +3968,7 @@ static void test_graph_seeking(void)
hr
=
IMediaSeeking_GetPositions
(
seeking
,
&
current
,
&
stop
);
hr
=
IMediaSeeking_GetPositions
(
seeking
,
&
current
,
&
stop
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
!
current
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
current
));
todo_wine
ok
(
!
current
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
current
));
todo_wine
ok
(
!
stop
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
stop
));
ok
(
!
stop
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
stop
));
hr
=
IMediaControl_Stop
(
control
);
hr
=
IMediaControl_Stop
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
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