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
f5400a28
Commit
f5400a28
authored
Mar 25, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Mar 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Store the current reference time with the PullPin.
parent
57400724
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
pin.c
dlls/quartz/pin.c
+7
-6
pin.h
dlls/quartz/pin.h
+1
-0
No files found.
dlls/quartz/pin.c
View file @
f5400a28
...
...
@@ -1044,6 +1044,7 @@ HRESULT PullPin_Init(const PIN_INFO * pPinInfo, SAMPLEPROC pSampleProc, LPVOID p
pPinImpl
->
hEventStateChanged
=
CreateEventW
(
NULL
,
FALSE
,
TRUE
,
NULL
);
pPinImpl
->
rtStart
=
0
;
pPinImpl
->
rtCurrent
=
0
;
pPinImpl
->
rtStop
=
((
LONGLONG
)
0x7fffffff
<<
32
)
|
0xffffffff
;
return
S_OK
;
...
...
@@ -1177,7 +1178,6 @@ static void CALLBACK PullPin_Thread_Process(ULONG_PTR iface)
PullPin
*
This
=
(
PullPin
*
)
iface
;
HRESULT
hr
;
REFERENCE_TIME
rtCurrent
;
ALLOCATOR_PROPERTIES
allocProps
;
PIN_INFO
pinInfo
;
...
...
@@ -1187,11 +1187,12 @@ static void CALLBACK PullPin_Thread_Process(ULONG_PTR iface)
hr
=
IMemAllocator_GetProperties
(
This
->
pAlloc
,
&
allocProps
);
rtCurrent
=
MEDIATIME_FROM_BYTES
(
ALIGNDOWN
(
BYTES_FROM_MEDIATIME
(
This
->
rtStart
),
allocProps
.
cbAlign
));
if
(
This
->
rtCurrent
<
This
->
rtStart
)
This
->
rtCurrent
=
MEDIATIME_FROM_BYTES
(
ALIGNDOWN
(
BYTES_FROM_MEDIATIME
(
This
->
rtStart
),
allocProps
.
cbAlign
));
TRACE
(
"Start
\n
"
);
while
(
rtCurrent
<
This
->
rtStop
&&
hr
==
S_OK
)
while
(
This
->
rtCurrent
<
This
->
rtStop
&&
hr
==
S_OK
)
{
/* FIXME: to improve performance by quite a bit this should be changed
* so that one sample is processed while one sample is fetched. However,
...
...
@@ -1208,11 +1209,11 @@ static void CALLBACK PullPin_Thread_Process(ULONG_PTR iface)
if
(
SUCCEEDED
(
hr
))
{
rtSampleStop
=
rtCurrent
+
MEDIATIME_FROM_BYTES
(
IMediaSample_GetSize
(
pSample
));
rtSampleStop
=
This
->
rtCurrent
+
MEDIATIME_FROM_BYTES
(
IMediaSample_GetSize
(
pSample
));
if
(
rtSampleStop
>
This
->
rtStop
)
rtSampleStop
=
MEDIATIME_FROM_BYTES
(
ALIGNUP
(
BYTES_FROM_MEDIATIME
(
This
->
rtStop
),
allocProps
.
cbAlign
));
hr
=
IMediaSample_SetTime
(
pSample
,
&
rtCurrent
,
&
rtSampleStop
);
rtCurrent
=
rtSampleStop
;
hr
=
IMediaSample_SetTime
(
pSample
,
&
This
->
rtCurrent
,
&
rtSampleStop
);
This
->
rtCurrent
=
rtSampleStop
;
}
if
(
SUCCEEDED
(
hr
))
...
...
dlls/quartz/pin.h
View file @
f5400a28
...
...
@@ -84,6 +84,7 @@ typedef struct PullPin
HANDLE
hEventStateChanged
;
REFERENCE_TIME
rtStart
;
REFERENCE_TIME
rtStop
;
REFERENCE_TIME
rtCurrent
;
}
PullPin
;
/*** Initializers ***/
...
...
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