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
cc78d104
Commit
cc78d104
authored
Nov 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Avoid unnecessary use of IPin::ConnectedTo().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bcb05ad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
outputqueue.c
dlls/strmbase/outputqueue.c
+7
-17
No files found.
dlls/strmbase/outputqueue.c
View file @
cc78d104
...
...
@@ -177,6 +177,8 @@ VOID WINAPI OutputQueue_SendAnyway(OutputQueue *pOutputQueue)
VOID
WINAPI
OutputQueue_EOS
(
OutputQueue
*
pOutputQueue
)
{
IPin
*
peer
;
EnterCriticalSection
(
&
pOutputQueue
->
csQueue
);
if
(
pOutputQueue
->
hThread
)
{
...
...
@@ -191,16 +193,8 @@ VOID WINAPI OutputQueue_EOS(OutputQueue *pOutputQueue)
qev
->
pSample
=
NULL
;
list_add_tail
(
&
pOutputQueue
->
SampleList
,
&
qev
->
entry
);
}
else
{
IPin
*
ppin
=
NULL
;
IPin_ConnectedTo
(
&
pOutputQueue
->
pInputPin
->
pin
.
IPin_iface
,
&
ppin
);
if
(
ppin
)
{
IPin_EndOfStream
(
ppin
);
IPin_Release
(
ppin
);
}
}
else
if
((
peer
=
pOutputQueue
->
pInputPin
->
pin
.
peer
))
IPin_EndOfStream
(
peer
);
LeaveCriticalSection
(
&
pOutputQueue
->
csQueue
);
/* Covers sending the Event to the worker Thread */
OutputQueue_SendAnyway
(
pOutputQueue
);
...
...
@@ -259,13 +253,9 @@ DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue)
QueuedEvent
*
qev
=
LIST_ENTRY
(
cursor
,
QueuedEvent
,
entry
);
if
(
qev
->
type
==
EOS_PACKET
)
{
IPin
*
ppin
=
NULL
;
IPin_ConnectedTo
(
&
pOutputQueue
->
pInputPin
->
pin
.
IPin_iface
,
&
ppin
);
if
(
ppin
)
{
IPin_EndOfStream
(
ppin
);
IPin_Release
(
ppin
);
}
IPin
*
peer
;
if
((
peer
=
pOutputQueue
->
pInputPin
->
pin
.
peer
))
IPin_EndOfStream
(
peer
);
}
else
if
(
qev
->
type
==
SAMPLE_PACKET
)
break
;
...
...
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