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
155e4fb6
Commit
155e4fb6
authored
Jun 15, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Jun 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Use !list_empty() instead of list_count() > 0.
parent
bcd2d0ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
outputqueue.c
dlls/strmbase/outputqueue.c
+4
-7
No files found.
dlls/strmbase/outputqueue.c
View file @
155e4fb6
...
...
@@ -171,10 +171,10 @@ HRESULT WINAPI OutputQueue_ReceiveMultiple(OutputQueue *pOutputQueue, IMediaSamp
list_add_tail
(
pOutputQueue
->
SampleList
,
&
qev
->
entry
);
(
*
nSamplesProcessed
)
++
;
}
LeaveCriticalSection
(
&
pOutputQueue
->
csQueue
);
if
(
!
pOutputQueue
->
bBatchExact
||
list_count
(
pOutputQueue
->
SampleList
)
>=
pOutputQueue
->
lBatchSize
)
SetEvent
(
pOutputQueue
->
hProcessQueue
);
LeaveCriticalSection
(
&
pOutputQueue
->
csQueue
);
}
return
hr
;
}
...
...
@@ -190,7 +190,7 @@ VOID WINAPI OutputQueue_SendAnyway(OutputQueue *pOutputQueue)
if
(
pOutputQueue
->
hThread
)
{
EnterCriticalSection
(
&
pOutputQueue
->
csQueue
);
if
(
list_count
(
pOutputQueue
->
SampleList
)
>
0
)
if
(
!
list_empty
(
pOutputQueue
->
SampleList
)
)
{
pOutputQueue
->
bSendAnyway
=
TRUE
;
SetEvent
(
pOutputQueue
->
hProcessQueue
);
...
...
@@ -235,14 +235,14 @@ DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue)
do
{
EnterCriticalSection
(
&
pOutputQueue
->
csQueue
);
if
(
list_count
(
pOutputQueue
->
SampleList
)
>
0
&&
if
(
!
list_empty
(
pOutputQueue
->
SampleList
)
&&
(
!
pOutputQueue
->
bBatchExact
||
list_count
(
pOutputQueue
->
SampleList
)
>=
pOutputQueue
->
lBatchSize
||
pOutputQueue
->
bSendAnyway
)
)
{
while
(
list_count
(
pOutputQueue
->
SampleList
)
>
0
)
while
(
!
list_empty
(
pOutputQueue
->
SampleList
)
)
{
IMediaSample
**
ppSamples
;
LONG
nSamples
;
...
...
@@ -278,8 +278,6 @@ DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue)
HeapFree
(
GetProcessHeap
(),
0
,
ppSamples
);
/* Process Non-Samples */
if
(
list_count
(
pOutputQueue
->
SampleList
)
>
0
)
{
LIST_FOR_EACH_SAFE
(
cursor
,
cursor2
,
pOutputQueue
->
SampleList
)
{
QueuedEvent
*
qev
=
LIST_ENTRY
(
cursor
,
QueuedEvent
,
entry
);
...
...
@@ -301,7 +299,6 @@ DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue)
HeapFree
(
GetProcessHeap
(),
0
,
qev
);
}
}
}
pOutputQueue
->
bSendAnyway
=
FALSE
;
}
LeaveCriticalSection
(
&
pOutputQueue
->
csQueue
);
...
...
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