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
ec124be8
Commit
ec124be8
authored
Apr 22, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add some sanity checks to file splitter.
parent
4abbf915
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
filesource.c
dlls/quartz/filesource.c
+11
-2
No files found.
dlls/quartz/filesource.c
View file @
ec124be8
...
...
@@ -1107,6 +1107,9 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if
(
!
This
->
bFlushing
)
{
if
(
!
This
->
pHead
)
ERR
(
"Called without samples in queue!
\n
"
);
/* wait for the read to finish or timeout */
if
(
WaitForSingleObject
(
This
->
hEvent
,
dwTimeout
)
==
WAIT_TIMEOUT
)
hr
=
VFW_E_TIMEOUT
;
...
...
@@ -1139,10 +1142,10 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
*
pdwUser
=
pDataRq
->
dwUserData
;
if
(
This
->
bFlushing
)
{
hr
=
VFW_E_WRONG_STATE
;
if
(
FAILED
(
hr
))
dwBytes
=
0
;
}
/* Set the time on the sample */
IMediaSample_SetActualDataLength
(
pDataRq
->
pSample
,
dwBytes
);
...
...
@@ -1156,6 +1159,12 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
assert
(
rtStop
<=
rtSampleStop
);
IMediaSample_SetTime
(
pDataRq
->
pSample
,
&
rtStart
,
&
rtStop
);
assert
(
rtStart
==
rtSampleStart
);
if
(
hr
==
S_OK
)
assert
(
rtStop
==
rtSampleStop
);
else
assert
(
rtStop
==
rtStart
);
}
/* 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