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
2d589407
Commit
2d589407
authored
Jun 30, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Pass the object instead of the iface to an internal helper.
parent
f888eb91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
filtergraph.c
dlls/quartz/filtergraph.c
+8
-8
No files found.
dlls/quartz/filtergraph.c
View file @
2d589407
...
@@ -1903,9 +1903,8 @@ static HRESULT WINAPI SendGetState(IBaseFilter *pFilter, DWORD_PTR data)
...
@@ -1903,9 +1903,8 @@ static HRESULT WINAPI SendGetState(IBaseFilter *pFilter, DWORD_PTR data)
}
}
static
HRESULT
SendFilterMessage
(
I
MediaControl
*
iface
,
fnFoundFilter
FoundFilter
,
DWORD_PTR
data
)
static
HRESULT
SendFilterMessage
(
I
FilterGraphImpl
*
This
,
fnFoundFilter
FoundFilter
,
DWORD_PTR
data
)
{
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaControl_vtbl
,
iface
);
int
i
;
int
i
;
IBaseFilter
*
pfilter
;
IBaseFilter
*
pfilter
;
IEnumPins
*
pEnum
;
IEnumPins
*
pEnum
;
...
@@ -1913,7 +1912,8 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter
...
@@ -1913,7 +1912,8 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter
IPin
*
pPin
;
IPin
*
pPin
;
DWORD
dummy
;
DWORD
dummy
;
PIN_DIRECTION
dir
;
PIN_DIRECTION
dir
;
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
TRACE
(
"(%p)->()
\n
"
,
This
);
/* Explorer the graph from source filters to renderers, determine renderers
/* Explorer the graph from source filters to renderers, determine renderers
* number and run filters from renderers to source filters */
* number and run filters from renderers to source filters */
...
@@ -1985,7 +1985,7 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
...
@@ -1985,7 +1985,7 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
}
}
else
This
->
start_time
=
0
;
else
This
->
start_time
=
0
;
SendFilterMessage
(
iface
,
SendRun
,
(
DWORD_PTR
)
&
This
->
start_time
);
SendFilterMessage
(
This
,
SendRun
,
(
DWORD_PTR
)
&
This
->
start_time
);
This
->
state
=
State_Running
;
This
->
state
=
State_Running
;
out:
out:
LeaveCriticalSection
(
&
This
->
cs
);
LeaveCriticalSection
(
&
This
->
cs
);
...
@@ -2005,7 +2005,7 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface) {
...
@@ -2005,7 +2005,7 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface) {
else
else
This
->
pause_time
=
-
1
;
This
->
pause_time
=
-
1
;
SendFilterMessage
(
iface
,
SendPause
,
0
);
SendFilterMessage
(
This
,
SendPause
,
0
);
This
->
state
=
State_Paused
;
This
->
state
=
State_Paused
;
out:
out:
LeaveCriticalSection
(
&
This
->
cs
);
LeaveCriticalSection
(
&
This
->
cs
);
...
@@ -2019,8 +2019,8 @@ static HRESULT WINAPI MediaControl_Stop(IMediaControl *iface) {
...
@@ -2019,8 +2019,8 @@ static HRESULT WINAPI MediaControl_Stop(IMediaControl *iface) {
if
(
This
->
state
==
State_Stopped
)
return
S_OK
;
if
(
This
->
state
==
State_Stopped
)
return
S_OK
;
EnterCriticalSection
(
&
This
->
cs
);
EnterCriticalSection
(
&
This
->
cs
);
if
(
This
->
state
==
State_Running
)
SendFilterMessage
(
iface
,
SendPause
,
0
);
if
(
This
->
state
==
State_Running
)
SendFilterMessage
(
This
,
SendPause
,
0
);
SendFilterMessage
(
iface
,
SendStop
,
0
);
SendFilterMessage
(
This
,
SendStop
,
0
);
This
->
state
=
State_Stopped
;
This
->
state
=
State_Stopped
;
LeaveCriticalSection
(
&
This
->
cs
);
LeaveCriticalSection
(
&
This
->
cs
);
return
S_OK
;
return
S_OK
;
...
@@ -2053,7 +2053,7 @@ static HRESULT WINAPI MediaControl_GetState(IMediaControl *iface,
...
@@ -2053,7 +2053,7 @@ static HRESULT WINAPI MediaControl_GetState(IMediaControl *iface,
end
=
0
;
end
=
0
;
}
}
if
(
end
)
if
(
end
)
SendFilterMessage
(
iface
,
SendGetState
,
end
);
SendFilterMessage
(
This
,
SendGetState
,
end
);
LeaveCriticalSection
(
&
This
->
cs
);
LeaveCriticalSection
(
&
This
->
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