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
c53a803a
Commit
c53a803a
authored
Mar 19, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix checking for duration.
parent
d38b8502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
filtergraph.c
dlls/quartz/filtergraph.c
+4
-3
No files found.
dlls/quartz/filtergraph.c
View file @
c53a803a
...
...
@@ -1914,8 +1914,8 @@ static HRESULT WINAPI FoundDuration(IFilterGraphImpl *This, IMediaSeeking *seek,
if
(
FAILED
(
hr
))
return
hr
;
/* FIXME: Minimum or maximum duration? */
if
(
!
*
pdur
<
duration
)
/* FIXME: Minimum or maximum duration?
Assuming minimum
*/
if
(
duration
>
0
&&
*
pdur
<
duration
)
*
pdur
=
duration
;
return
hr
;
...
...
@@ -1932,10 +1932,11 @@ static HRESULT WINAPI MediaSeeking_GetDuration(IMediaSeeking *iface,
return
E_POINTER
;
EnterCriticalSection
(
&
This
->
cs
);
*
pDuration
=
0
;
*
pDuration
=
-
1
;
hr
=
all_renderers_seek
(
This
,
FoundDuration
,
(
DWORD_PTR
)
pDuration
);
LeaveCriticalSection
(
&
This
->
cs
);
TRACE
(
"--->%08x
\n
"
,
hr
);
return
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