Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
79767218
Commit
79767218
authored
May 11, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Make GSTOutPin_BreakConnect() a local helper.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f789c70d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gstdemux.c
dlls/winegstreamer/gstdemux.c
+6
-4
No files found.
dlls/winegstreamer/gstdemux.c
View file @
79767218
...
...
@@ -1829,7 +1829,7 @@ static HRESULT WINAPI GSTOutPin_DecideAllocator(BaseOutputPin *iface, IMemInputP
return
hr
;
}
static
HRESULT
WINAPI
GSTOutPin_BreakConnect
(
BaseOutputPin
*
This
)
static
HRESULT
break_source_connection
(
BaseOutputPin
*
This
)
{
HRESULT
hr
;
...
...
@@ -1840,7 +1840,9 @@ static HRESULT WINAPI GSTOutPin_BreakConnect(BaseOutputPin *This)
hr
=
VFW_E_NOT_CONNECTED
;
else
{
hr
=
IPin_Disconnect
(
This
->
pin
.
pConnectedTo
);
hr
=
IMemAllocator_Decommit
(
This
->
pAllocator
);
if
(
SUCCEEDED
(
hr
))
hr
=
IPin_Disconnect
(
This
->
pin
.
pConnectedTo
);
IPin_Disconnect
((
IPin
*
)
This
);
}
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
...
...
@@ -1877,7 +1879,7 @@ static const BaseOutputPinFuncTable output_BaseOutputFuncTable = {
BaseOutputPinImpl_AttemptConnection
,
GSTOutPin_DecideBufferSize
,
GSTOutPin_DecideAllocator
,
GSTOutPin_BreakConnect
NULL
,
};
static
HRESULT
GST_AddPin
(
GSTImpl
*
This
,
const
PIN_INFO
*
piOutput
,
const
AM_MEDIA_TYPE
*
amt
)
...
...
@@ -1920,7 +1922,7 @@ static HRESULT GST_RemoveOutputPins(GSTImpl *This)
This
->
my_src
=
This
->
their_sink
=
NULL
;
for
(
i
=
0
;
i
<
This
->
cStreams
;
i
++
)
{
hr
=
BaseOutputPinImpl_BreakConnect
(
&
This
->
ppPins
[
i
]
->
pin
);
hr
=
break_source_connection
(
&
This
->
ppPins
[
i
]
->
pin
);
TRACE
(
"Disconnect: %08x
\n
"
,
hr
);
IPin_Release
(
&
This
->
ppPins
[
i
]
->
pin
.
pin
.
IPin_iface
);
}
...
...
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