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
eb5d8b96
Commit
eb5d8b96
authored
Mar 24, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: COM cleanup for BasePin, BaseInputPin, and BaseOutputPin.
parent
29d3c754
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
pin.c
dlls/quartz/pin.c
+2
-2
mediatype.c
dlls/strmbase/mediatype.c
+2
-2
outputqueue.c
dlls/strmbase/outputqueue.c
+4
-4
pin.c
dlls/strmbase/pin.c
+0
-0
gstdemux.c
dlls/winegstreamer/gstdemux.c
+2
-2
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+2
-2
strmbase.h
include/wine/strmbase.h
+2
-2
No files found.
dlls/quartz/pin.c
View file @
eb5d8b96
...
...
@@ -186,7 +186,7 @@ static HRESULT PullPin_Init(const IPinVtbl *PullPin_Vtbl, const PIN_INFO * pPinI
QUERYACCEPTPROC
pQueryAccept
,
CLEANUPPROC
pCleanUp
,
REQUESTPROC
pCustomRequest
,
STOPPROCESSPROC
pDone
,
LPCRITICAL_SECTION
pCritSec
,
PullPin
*
pPinImpl
)
{
/* Common attributes */
pPinImpl
->
pin
.
lpVtbl
=
PullPin_Vtbl
;
pPinImpl
->
pin
.
IPin_iface
.
lpVtbl
=
PullPin_Vtbl
;
pPinImpl
->
pin
.
refCount
=
1
;
pPinImpl
->
pin
.
pConnectedTo
=
NULL
;
pPinImpl
->
pin
.
pCritSec
=
pCritSec
;
...
...
@@ -240,7 +240,7 @@ HRESULT PullPin_Construct(const IPinVtbl *PullPin_Vtbl, const PIN_INFO * pPinInf
if
(
SUCCEEDED
(
PullPin_Init
(
PullPin_Vtbl
,
pPinInfo
,
pSampleProc
,
pUserData
,
pQueryAccept
,
pCleanUp
,
pCustomRequest
,
pDone
,
pCritSec
,
pPinImpl
)))
{
*
ppPin
=
(
IPin
*
)(
&
pPinImpl
->
pin
.
lpVtbl
)
;
*
ppPin
=
&
pPinImpl
->
pin
.
IPin_iface
;
return
S_OK
;
}
...
...
dlls/strmbase/mediatype.c
View file @
eb5d8b96
...
...
@@ -118,7 +118,7 @@ HRESULT WINAPI EnumMediaTypes_Construct(BasePin *basePin, BasePin_GetMediaType e
pEnumMediaTypes
->
uIndex
=
0
;
pEnumMediaTypes
->
enumMediaFunction
=
enumFunc
;
pEnumMediaTypes
->
mediaVersionFunction
=
versionFunc
;
IPin_AddRef
(
(
IPin
*
)
basePin
);
IPin_AddRef
(
&
basePin
->
IPin_iface
);
pEnumMediaTypes
->
basePin
=
basePin
;
i
=
0
;
...
...
@@ -188,7 +188,7 @@ static ULONG WINAPI IEnumMediaTypesImpl_Release(IEnumMediaTypes * iface)
if
(
This
->
enumMediaDetails
.
pMediaTypes
[
i
].
pbFormat
)
CoTaskMemFree
(
This
->
enumMediaDetails
.
pMediaTypes
[
i
].
pbFormat
);
CoTaskMemFree
(
This
->
enumMediaDetails
.
pMediaTypes
);
IPin_Release
(
(
IPin
*
)
This
->
basePin
);
IPin_Release
(
&
This
->
basePin
->
IPin_iface
);
CoTaskMemFree
(
This
);
}
return
refCount
;
...
...
dlls/strmbase/outputqueue.c
View file @
eb5d8b96
...
...
@@ -97,7 +97,7 @@ HRESULT WINAPI OutputQueue_Construct(
list_init
(
This
->
SampleList
);
This
->
pInputPin
=
pInputPin
;
IPin_AddRef
(
(
IPin
*
)
pInputPin
);
IPin_AddRef
(
&
pInputPin
->
pin
.
IPin_iface
);
EnterCriticalSection
(
&
This
->
csQueue
);
if
(
bAuto
&&
pInputPin
->
pMemInputPin
)
...
...
@@ -133,7 +133,7 @@ HRESULT WINAPI OutputQueue_Destroy(OutputQueue *pOutputQueue)
HeapFree
(
GetProcessHeap
(),
0
,
pOutputQueue
->
SampleList
);
IPin_Release
(
(
IPin
*
)
pOutputQueue
->
pInputPin
);
IPin_Release
(
&
pOutputQueue
->
pInputPin
->
pin
.
IPin_iface
);
HeapFree
(
GetProcessHeap
(),
0
,
pOutputQueue
);
return
S_OK
;
}
...
...
@@ -219,7 +219,7 @@ VOID WINAPI OutputQueue_EOS(OutputQueue *pOutputQueue)
else
{
IPin
*
ppin
=
NULL
;
IPin_ConnectedTo
(
(
IPin
*
)
pOutputQueue
->
pInputPin
,
&
ppin
);
IPin_ConnectedTo
(
&
pOutputQueue
->
pInputPin
->
pin
.
IPin_iface
,
&
ppin
);
if
(
ppin
)
{
IPin_EndOfStream
(
ppin
);
...
...
@@ -285,7 +285,7 @@ DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue)
if
(
qev
->
type
==
EOS_PACKET
)
{
IPin
*
ppin
=
NULL
;
IPin_ConnectedTo
(
(
IPin
*
)
pOutputQueue
->
pInputPin
,
&
ppin
);
IPin_ConnectedTo
(
&
pOutputQueue
->
pInputPin
->
pin
.
IPin_iface
,
&
ppin
);
if
(
ppin
)
{
IPin_EndOfStream
(
ppin
);
...
...
dlls/strmbase/pin.c
View file @
eb5d8b96
This diff is collapsed.
Click to expand it.
dlls/winegstreamer/gstdemux.c
View file @
eb5d8b96
...
...
@@ -1062,7 +1062,7 @@ IUnknown * CALLBACK Gstreamer_Splitter_create(IUnknown *punkout, HRESULT *phr) {
piInput
->
dir
=
PINDIR_INPUT
;
piInput
->
pFilter
=
(
IBaseFilter
*
)
This
;
lstrcpynW
(
piInput
->
achName
,
wcsInputPinName
,
sizeof
(
piInput
->
achName
)
/
sizeof
(
piInput
->
achName
[
0
]));
This
->
pInputPin
.
pin
.
lpVtbl
=
&
GST_InputPin_Vtbl
;
This
->
pInputPin
.
pin
.
IPin_iface
.
lpVtbl
=
&
GST_InputPin_Vtbl
;
This
->
pInputPin
.
pin
.
refCount
=
1
;
This
->
pInputPin
.
pin
.
pConnectedTo
=
NULL
;
This
->
pInputPin
.
pin
.
pCritSec
=
&
This
->
filter
.
csFilter
;
...
...
@@ -1604,7 +1604,7 @@ static ULONG WINAPI GSTInPin_Release(IPin *iface) {
if
(
This
->
pAlloc
)
IMemAllocator_Release
(
This
->
pAlloc
);
This
->
pAlloc
=
NULL
;
This
->
pin
.
lpVtbl
=
NULL
;
This
->
pin
.
IPin_iface
.
lpVtbl
=
NULL
;
return
0
;
}
else
return
refCount
;
...
...
dlls/wineqtdecoder/qtsplitter.c
View file @
eb5d8b96
...
...
@@ -266,7 +266,7 @@ IUnknown * CALLBACK QTSplitter_create(IUnknown *punkout, HRESULT *phr)
piInput
->
dir
=
PINDIR_INPUT
;
piInput
->
pFilter
=
(
IBaseFilter
*
)
This
;
lstrcpynW
(
piInput
->
achName
,
wcsInputPinName
,
sizeof
(
piInput
->
achName
)
/
sizeof
(
piInput
->
achName
[
0
]));
This
->
pInputPin
.
pin
.
lpVtbl
=
&
QT_InputPin_Vtbl
;
This
->
pInputPin
.
pin
.
IPin_iface
.
lpVtbl
=
&
QT_InputPin_Vtbl
;
This
->
pInputPin
.
pin
.
refCount
=
1
;
This
->
pInputPin
.
pin
.
pConnectedTo
=
NULL
;
This
->
pInputPin
.
pin
.
pCritSec
=
&
This
->
filter
.
csFilter
;
...
...
@@ -763,7 +763,7 @@ static ULONG WINAPI QTInPin_Release(IPin *iface)
if
(
This
->
pAlloc
)
IMemAllocator_Release
(
This
->
pAlloc
);
This
->
pAlloc
=
NULL
;
This
->
pin
.
lpVtbl
=
NULL
;
This
->
pin
.
IPin_iface
.
lpVtbl
=
NULL
;
return
0
;
}
else
...
...
include/wine/strmbase.h
View file @
eb5d8b96
...
...
@@ -28,7 +28,7 @@ void WINAPI DeleteMediaType(AM_MEDIA_TYPE * pMediaType);
typedef
struct
BasePin
{
const
struct
IPinVtbl
*
lpVtbl
;
IPin
IPin_iface
;
LONG
refCount
;
LPCRITICAL_SECTION
pCritSec
;
PIN_INFO
pinInfo
;
...
...
@@ -82,7 +82,7 @@ typedef struct BaseInputPin
/* inheritance C style! */
BasePin
pin
;
const
IMemInputPinVtbl
*
lpVtblMemInput
;
IMemInputPin
IMemInputPin_iface
;
IMemAllocator
*
pAllocator
;
BOOL
flushing
,
end_of_stream
;
IMemAllocator
*
preferred_allocator
;
...
...
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