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
d1897cf9
Commit
d1897cf9
authored
Feb 05, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Check if the pin is already connected in source_Connect().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
09b0d9d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
pin.c
dlls/strmbase/pin.c
+7
-0
No files found.
dlls/strmbase/pin.c
View file @
d1897cf9
...
...
@@ -463,6 +463,13 @@ static HRESULT WINAPI source_Connect(IPin *iface, IPin *peer, const AM_MEDIA_TYP
EnterCriticalSection
(
&
pin
->
pin
.
filter
->
csFilter
);
if
(
pin
->
pin
.
peer
)
{
LeaveCriticalSection
(
&
pin
->
pin
.
filter
->
csFilter
);
WARN
(
"Pin is already connected, returning VFW_E_ALREADY_CONNECTED.
\n
"
);
return
VFW_E_ALREADY_CONNECTED
;
}
if
(
pin
->
pin
.
filter
->
state
!=
State_Stopped
)
{
LeaveCriticalSection
(
&
pin
->
pin
.
filter
->
csFilter
);
...
...
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