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
0458c08b
Commit
0458c08b
authored
Apr 18, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Set media time in the file source.
parent
17234734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
filesource.c
dlls/quartz/filesource.c
+14
-0
No files found.
dlls/quartz/filesource.c
View file @
0458c08b
...
...
@@ -1127,6 +1127,9 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if
(
SUCCEEDED
(
hr
))
{
REFERENCE_TIME
rtStart
,
rtStop
;
REFERENCE_TIME
rtSampleStart
,
rtSampleStop
;
/* get any errors */
if
(
!
This
->
bFlushing
&&
!
GetOverlappedResult
(
This
->
hFile
,
&
pDataRq
->
ovl
,
&
dwBytes
,
FALSE
))
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
...
...
@@ -1141,7 +1144,18 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
dwBytes
=
0
;
}
/* Set the time on the sample */
IMediaSample_SetActualDataLength
(
pDataRq
->
pSample
,
dwBytes
);
rtStart
=
(
DWORD64
)
pDataRq
->
ovl
.
u
.
s
.
Offset
+
((
DWORD64
)
pDataRq
->
ovl
.
u
.
s
.
OffsetHigh
<<
32
);
rtStart
=
MEDIATIME_FROM_BYTES
(
rtStart
);
rtStop
=
rtStart
+
MEDIATIME_FROM_BYTES
(
dwBytes
);
IMediaSample_GetTime
(
pDataRq
->
pSample
,
&
rtSampleStart
,
&
rtSampleStop
);
assert
(
rtStart
==
rtSampleStart
);
assert
(
rtStop
<=
rtSampleStop
);
IMediaSample_SetTime
(
pDataRq
->
pSample
,
&
rtStart
,
&
rtStop
);
}
/* no need to close event handle since we will close it when the pin is destroyed */
...
...
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