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
7cb1324a
Commit
7cb1324a
authored
Apr 01, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't hold lock when changing state in filtergraph.
parent
4b5d06d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
filtergraph.c
dlls/quartz/filtergraph.c
+8
-2
No files found.
dlls/quartz/filtergraph.c
View file @
7cb1324a
...
...
@@ -1472,7 +1472,9 @@ static HRESULT ExploreGraph(IFilterGraphImpl* pGraph, IPin* pOutputPin, fnFoundF
CoTaskMemFree
(
ppPins
);
}
TRACE
(
"Doing stuff with filter %p
\n
"
,
PinInfo
.
pFilter
);
LeaveCriticalSection
(
&
pGraph
->
cs
);
FoundFilter
(
PinInfo
.
pFilter
);
EnterCriticalSection
(
&
pGraph
->
cs
);
}
if
(
PinInfo
.
pFilter
)
IBaseFilter_Release
(
PinInfo
.
pFilter
);
...
...
@@ -1499,11 +1501,11 @@ static HRESULT WINAPI SendRun(IBaseFilter *pFilter) {
}
static
HRESULT
WINAPI
SendPause
(
IBaseFilter
*
pFilter
)
{
return
IBaseFilter_Pause
(
pFilter
);
return
IBaseFilter_Pause
(
pFilter
);
}
static
HRESULT
WINAPI
SendStop
(
IBaseFilter
*
pFilter
)
{
return
IBaseFilter_Stop
(
pFilter
);
return
IBaseFilter_Stop
(
pFilter
);
}
static
HRESULT
SendFilterMessage
(
IMediaControl
*
iface
,
fnFoundFilter
FoundFilter
)
{
...
...
@@ -1776,7 +1778,9 @@ static HRESULT all_renderers_seek(IFilterGraphImpl *This, fnFoundSeek FoundSeek,
IBaseFilter_QueryInterface
(
pfilter
,
&
IID_IMediaSeeking
,
(
void
**
)
&
seek
);
if
(
!
seek
)
continue
;
LeaveCriticalSection
(
&
This
->
cs
);
hr
=
FoundSeek
(
This
,
seek
,
arg
);
EnterCriticalSection
(
&
This
->
cs
);
IMediaSeeking_Release
(
seek
);
if
(
hr_return
!=
E_NOTIMPL
)
allnotimpl
=
FALSE
;
...
...
@@ -1980,6 +1984,7 @@ static HRESULT WINAPI MediaSeeking_GetCurrentPosition(IMediaSeeking *iface,
if
(
!
pCurrent
)
return
E_POINTER
;
EnterCriticalSection
(
&
This
->
cs
);
if
(
This
->
state
==
State_Running
&&
This
->
refClock
)
{
IReferenceClock_GetTime
(
This
->
refClock
,
&
time
);
...
...
@@ -1991,6 +1996,7 @@ static HRESULT WINAPI MediaSeeking_GetCurrentPosition(IMediaSeeking *iface,
}
else
*
pCurrent
=
This
->
position
;
LeaveCriticalSection
(
&
This
->
cs
);
TRACE
(
"Time: %lld.%03lld
\n
"
,
*
pCurrent
/
10000000
,
(
*
pCurrent
/
10000
)
%
1000
);
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