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
c4cdfdac
Commit
c4cdfdac
authored
Apr 30, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: More filesource fixes.
After a flush call there should be no more samples in the buffer.
parent
4afc2ae9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
filesource.c
dlls/quartz/filesource.c
+6
-1
No files found.
dlls/quartz/filesource.c
View file @
c4cdfdac
...
...
@@ -1166,6 +1166,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if
(
buffer
>=
This
->
samples
)
{
if
(
buffer
!=
This
->
samples
)
FIXME
(
"Returned: %u (%08x)
\n
"
,
buffer
,
GetLastError
());
hr
=
VFW_E_TIMEOUT
;
buffer
=
~
0
;
...
...
@@ -1188,7 +1189,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if
(
buffer
==
This
->
samples
)
{
assert
(
!
This
->
queued_number
);
hr
=
E_FAIL
;
hr
=
VFW_E_TIMEOUT
;
}
else
{
...
...
@@ -1342,12 +1343,16 @@ static HRESULT WINAPI FileAsyncReader_BeginFlush(IAsyncReader * iface)
static
HRESULT
WINAPI
FileAsyncReader_EndFlush
(
IAsyncReader
*
iface
)
{
FileAsyncReader
*
This
=
impl_from_IAsyncReader
(
iface
);
int
x
;
TRACE
(
"()
\n
"
);
EnterCriticalSection
(
&
This
->
csList
);
ResetEvent
(
This
->
handle_list
[
This
->
samples
]);
This
->
bFlushing
=
FALSE
;
for
(
x
=
0
;
x
<
This
->
samples
;
++
x
)
assert
(
!
This
->
sample_list
[
x
].
pSample
);
LeaveCriticalSection
(
&
This
->
csList
);
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