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
7c46e56c
Commit
7c46e56c
authored
May 11, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Make QTOutPin_BreakConnect() a local helper.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
79767218
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+22
-22
No files found.
dlls/wineqtdecoder/qtsplitter.c
View file @
7c46e56c
...
...
@@ -810,6 +810,25 @@ static const IBaseFilterVtbl QT_Vtbl = {
BaseFilterImpl_QueryVendorInfo
};
static
HRESULT
break_source_connection
(
BaseOutputPin
*
pin
)
{
HRESULT
hr
;
EnterCriticalSection
(
pin
->
pin
.
pCritSec
);
if
(
!
pin
->
pin
.
pConnectedTo
||
!
pin
->
pMemInputPin
)
hr
=
VFW_E_NOT_CONNECTED
;
else
{
hr
=
IMemAllocator_Decommit
(
pin
->
pAllocator
);
if
(
SUCCEEDED
(
hr
))
hr
=
IPin_Disconnect
(
pin
->
pin
.
pConnectedTo
);
IPin_Disconnect
(
&
pin
->
pin
.
IPin_iface
);
}
LeaveCriticalSection
(
pin
->
pin
.
pCritSec
);
return
hr
;
}
/*
* Input Pin
*/
...
...
@@ -821,7 +840,7 @@ static HRESULT QT_RemoveOutputPins(QTSplitter *This)
if
(
This
->
pVideo_Pin
)
{
OutputQueue_Destroy
(
This
->
pVideo_Pin
->
queue
);
hr
=
BaseOutputPinImpl_BreakConnect
(
&
This
->
pVideo_Pin
->
pin
);
hr
=
break_source_connection
(
&
This
->
pVideo_Pin
->
pin
);
TRACE
(
"Disconnect: %08x
\n
"
,
hr
);
IPin_Release
(
&
This
->
pVideo_Pin
->
pin
.
pin
.
IPin_iface
);
This
->
pVideo_Pin
=
NULL
;
...
...
@@ -829,7 +848,7 @@ static HRESULT QT_RemoveOutputPins(QTSplitter *This)
if
(
This
->
pAudio_Pin
)
{
OutputQueue_Destroy
(
This
->
pAudio_Pin
->
queue
);
hr
=
BaseOutputPinImpl_BreakConnect
(
&
This
->
pAudio_Pin
->
pin
);
hr
=
break_source_connection
(
&
This
->
pAudio_Pin
->
pin
);
TRACE
(
"Disconnect: %08x
\n
"
,
hr
);
IPin_Release
(
&
This
->
pAudio_Pin
->
pin
.
pin
.
IPin_iface
);
This
->
pAudio_Pin
=
NULL
;
...
...
@@ -1426,25 +1445,6 @@ static HRESULT WINAPI QTOutPin_DecideAllocator(BaseOutputPin *iface, IMemInputPi
return
hr
;
}
static
HRESULT
WINAPI
QTOutPin_BreakConnect
(
BaseOutputPin
*
This
)
{
HRESULT
hr
;
TRACE
(
"(%p)->()
\n
"
,
This
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
if
(
!
This
->
pin
.
pConnectedTo
||
!
This
->
pMemInputPin
)
hr
=
VFW_E_NOT_CONNECTED
;
else
{
hr
=
IPin_Disconnect
(
This
->
pin
.
pConnectedTo
);
IPin_Disconnect
(
&
This
->
pin
.
IPin_iface
);
}
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
return
hr
;
}
static
const
IPinVtbl
QT_OutputPin_Vtbl
=
{
QTOutPin_QueryInterface
,
BasePinImpl_AddRef
,
...
...
@@ -1520,7 +1520,7 @@ static const BaseOutputPinFuncTable output_BaseOutputFuncTable = {
BaseOutputPinImpl_AttemptConnection
,
QTOutPin_DecideBufferSize
,
QTOutPin_DecideAllocator
,
QTOutPin_BreakConnect
NULL
,
};
static
const
OutputQueueFuncTable
output_OutputQueueFuncTable
=
{
...
...
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