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
765cb748
Commit
765cb748
authored
Sep 12, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of the BaseOutputPinFuncTable typedef.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c585931d
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
26 deletions
+37
-26
avico.c
dlls/qcap/avico.c
+3
-2
avimux.c
dlls/qcap/avimux.c
+3
-2
smartteefilter.c
dlls/qcap/smartteefilter.c
+6
-4
vfwcapture.c
dlls/qcap/vfwcapture.c
+3
-2
filesource.c
dlls/quartz/filesource.c
+4
-3
parser.c
dlls/quartz/parser.c
+3
-2
pin.c
dlls/strmbase/pin.c
+1
-1
transform.c
dlls/strmbase/transform.c
+3
-2
gstdemux.c
dlls/winegstreamer/gstdemux.c
+3
-2
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+3
-2
strmbase.h
include/wine/strmbase.h
+5
-4
No files found.
dlls/qcap/avico.c
View file @
765cb748
...
...
@@ -579,7 +579,8 @@ static HRESULT WINAPI AVICompressorOut_DecideAllocator(struct strmbase_source *b
return
BaseOutputPinImpl_DecideAllocator
(
base
,
pPin
,
pAlloc
);
}
static
const
BaseOutputPinFuncTable
AVICompressorBaseOutputPinVtbl
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
NULL
,
AVICompressorOut_GetMediaType
...
...
@@ -608,7 +609,7 @@ IUnknown* WINAPI QCAP_createAVICompressor(IUnknown *outer, HRESULT *phr)
strmbase_sink_init
(
&
compressor
->
sink
,
&
AVICompressorInputPinVtbl
,
&
compressor
->
filter
,
sink_name
,
&
AVICompressorBaseInputPinVtbl
,
NULL
);
strmbase_source_init
(
&
compressor
->
source
,
&
AVICompressorOutputPinVtbl
,
&
compressor
->
filter
,
source_name
,
&
AVICompressorBaseOutputPinVtbl
);
&
compressor
->
filter
,
source_name
,
&
source_ops
);
*
phr
=
S_OK
;
return
&
compressor
->
filter
.
IUnknown_inner
;
...
...
dlls/qcap/avimux.c
View file @
765cb748
...
...
@@ -1221,7 +1221,8 @@ static HRESULT WINAPI AviMuxOut_DecideAllocator(struct strmbase_source *base,
return
IMemInputPin_NotifyAllocator
(
pPin
,
*
pAlloc
,
TRUE
);
}
static
const
BaseOutputPinFuncTable
AviMuxOut_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
AviMuxOut_CheckMediaType
,
AviMuxOut_GetMediaType
...
...
@@ -2018,7 +2019,7 @@ IUnknown * WINAPI QCAP_createAVIMux(IUnknown *outer, HRESULT *phr)
info
.
pFilter
=
&
avimux
->
filter
.
IBaseFilter_iface
;
lstrcpyW
(
info
.
achName
,
output_name
);
strmbase_source_init
(
&
avimux
->
source
,
&
AviMuxOut_PinVtbl
,
&
avimux
->
filter
,
output_name
,
&
AviMuxOut_BaseOutputFuncTable
);
output_name
,
&
source_ops
);
avimux
->
IQualityControl_iface
.
lpVtbl
=
&
AviMuxOut_QualityControlVtbl
;
avimux
->
cur_stream
=
0
;
avimux
->
cur_time
=
0
;
...
...
dlls/qcap/smartteefilter.c
View file @
765cb748
...
...
@@ -389,7 +389,8 @@ static HRESULT WINAPI SmartTeeFilterCapture_DecideAllocator(struct strmbase_sour
return
IMemInputPin_NotifyAllocator
(
pPin
,
This
->
sink
.
pAllocator
,
TRUE
);
}
static
const
BaseOutputPinFuncTable
SmartTeeFilterCaptureFuncs
=
{
static
const
struct
strmbase_source_ops
capture_ops
=
{
{
SmartTeeFilterCapture_CheckMediaType
,
SmartTeeFilterCapture_GetMediaType
...
...
@@ -461,7 +462,8 @@ static HRESULT WINAPI SmartTeeFilterPreview_DecideAllocator(struct strmbase_sour
return
IMemInputPin_NotifyAllocator
(
pPin
,
This
->
sink
.
pAllocator
,
TRUE
);
}
static
const
BaseOutputPinFuncTable
SmartTeeFilterPreviewFuncs
=
{
static
const
struct
strmbase_source_ops
preview_ops
=
{
{
SmartTeeFilterPreview_CheckMediaType
,
SmartTeeFilterPreview_GetMediaType
...
...
@@ -498,9 +500,9 @@ IUnknown* WINAPI QCAP_createSmartTeeFilter(IUnknown *outer, HRESULT *phr)
}
strmbase_source_init
(
&
object
->
capture
,
&
SmartTeeFilterCaptureVtbl
,
&
object
->
filter
,
captureW
,
&
SmartTeeFilterCaptureFunc
s
);
&
object
->
filter
,
captureW
,
&
capture_op
s
);
strmbase_source_init
(
&
object
->
preview
,
&
SmartTeeFilterPreviewVtbl
,
&
object
->
filter
,
previewW
,
&
SmartTeeFilterPreviewFunc
s
);
&
object
->
filter
,
previewW
,
&
preview_op
s
);
*
phr
=
S_OK
;
return
&
object
->
filter
.
IUnknown_inner
;
...
...
dlls/qcap/vfwcapture.c
View file @
765cb748
...
...
@@ -554,7 +554,8 @@ static HRESULT WINAPI VfwPin_DecideBufferSize(struct strmbase_source *iface,
return
IMemAllocator_SetProperties
(
pAlloc
,
ppropInputRequest
,
&
actual
);
}
static
const
BaseOutputPinFuncTable
output_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
VfwPin_CheckMediaType
,
VfwPin_GetMediaType
...
...
@@ -651,7 +652,7 @@ IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *outer, HRESULT *phr)
object
->
init
=
FALSE
;
strmbase_source_init
(
&
object
->
source
,
&
VfwPin_Vtbl
,
&
object
->
filter
,
source_name
,
&
output_BaseOutputFuncTable
);
source_name
,
&
source_ops
);
object
->
IKsPropertySet_iface
.
lpVtbl
=
&
IKsPropertySet_VTable
;
...
...
dlls/quartz/filesource.c
View file @
765cb748
...
...
@@ -79,7 +79,7 @@ typedef struct AsyncReader
}
AsyncReader
;
static
const
IPinVtbl
FileAsyncReaderPin_Vtbl
;
static
const
BaseOutputPinFuncTable
output_BaseOutputFuncTable
;
static
const
struct
strmbase_source_ops
source_ops
;
static
inline
AsyncReader
*
impl_from_strmbase_filter
(
struct
strmbase_filter
*
iface
)
{
...
...
@@ -489,7 +489,7 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
}
strmbase_source_init
(
&
This
->
source
,
&
FileAsyncReaderPin_Vtbl
,
&
This
->
filter
,
wszOutputPinName
,
&
output_BaseOutputFuncTable
);
wszOutputPinName
,
&
source_ops
);
BaseFilterImpl_IncrementPinVersion
(
&
This
->
filter
);
This
->
file
=
hFile
;
...
...
@@ -702,7 +702,8 @@ static HRESULT WINAPI FileAsyncReaderPin_DecideBufferSize(struct strmbase_source
return
IMemAllocator_SetProperties
(
pAlloc
,
&
This
->
allocProps
,
&
actual
);
}
static
const
BaseOutputPinFuncTable
output_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
FileAsyncReaderPin_CheckMediaType
,
FileAsyncReaderPin_GetMediaType
...
...
dlls/quartz/parser.c
View file @
765cb748
...
...
@@ -334,7 +334,8 @@ HRESULT WINAPI Parser_SetSyncSource(IBaseFilter * iface, IReferenceClock *pClock
return
S_OK
;
}
static
const
BaseOutputPinFuncTable
output_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
Parser_OutputPin_CheckMediaType
,
Parser_OutputPin_GetMediaType
...
...
@@ -360,7 +361,7 @@ HRESULT Parser_AddPin(ParserImpl *filter, const WCHAR *name,
filter
->
sources
[
filter
->
cStreams
]
=
object
;
strmbase_source_init
(
&
object
->
pin
,
&
Parser_OutputPin_Vtbl
,
&
filter
->
filter
,
name
,
&
output_BaseOutputFuncTable
);
name
,
&
source_ops
);
object
->
pmt
=
CoTaskMemAlloc
(
sizeof
(
AM_MEDIA_TYPE
));
CopyMediaType
(
object
->
pmt
,
mt
);
...
...
dlls/strmbase/pin.c
View file @
765cb748
...
...
@@ -708,7 +708,7 @@ HRESULT WINAPI BaseOutputPinImpl_AttemptConnection(struct strmbase_source *This,
}
void
strmbase_source_init
(
struct
strmbase_source
*
pin
,
const
IPinVtbl
*
vtbl
,
struct
strmbase_filter
*
filter
,
const
WCHAR
*
name
,
const
BaseOutputPinFuncTable
*
func_table
)
const
WCHAR
*
name
,
const
struct
strmbase_source_ops
*
func_table
)
{
memset
(
pin
,
0
,
sizeof
(
*
pin
));
pin
->
pin
.
IPin_iface
.
lpVtbl
=
vtbl
;
...
...
dlls/strmbase/transform.c
View file @
765cb748
...
...
@@ -171,7 +171,8 @@ static const BaseInputPinFuncTable tf_input_BaseInputFuncTable = {
TransformFilter_Input_Receive
};
static
const
BaseOutputPinFuncTable
tf_output_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
TransformFilter_Output_CheckMediaType
,
TransformFilter_Output_GetMediaType
...
...
@@ -290,7 +291,7 @@ static HRESULT strmbase_transform_init(IUnknown *outer, const CLSID *clsid,
wcsInputPinName
,
&
tf_input_BaseInputFuncTable
,
NULL
);
strmbase_source_init
(
&
filter
->
source
,
&
TransformFilter_OutputPin_Vtbl
,
&
filter
->
filter
,
wcsOutputPinName
,
&
tf_output_BaseOutputFuncTable
);
wcsOutputPinName
,
&
source_ops
);
QualityControlImpl_Create
(
&
filter
->
sink
.
pin
.
IPin_iface
,
&
filter
->
filter
.
IBaseFilter_iface
,
&
filter
->
qcimpl
);
...
...
dlls/winegstreamer/gstdemux.c
View file @
765cb748
...
...
@@ -1745,7 +1745,8 @@ static const IPinVtbl GST_OutputPin_Vtbl = {
BasePinImpl_NewSegment
};
static
const
BaseOutputPinFuncTable
output_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
GSTOutPin_CheckMediaType
,
GSTOutPin_GetMediaType
...
...
@@ -1767,7 +1768,7 @@ static BOOL create_pin(GSTImpl *filter, const WCHAR *name, const AM_MEDIA_TYPE *
return
FALSE
;
strmbase_source_init
(
&
pin
->
pin
,
&
GST_OutputPin_Vtbl
,
&
filter
->
filter
,
name
,
&
output_BaseOutputFuncTable
);
&
source_ops
);
pin
->
pmt
=
heap_alloc
(
sizeof
(
AM_MEDIA_TYPE
));
CopyMediaType
(
pin
->
pmt
,
mt
);
pin
->
caps_event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
...
...
dlls/wineqtdecoder/qtsplitter.c
View file @
765cb748
...
...
@@ -1408,7 +1408,8 @@ static const IQualityControlVtbl QTOutPin_QualityControl_Vtbl = {
QT_QualityControl_SetSink
};
static
const
BaseOutputPinFuncTable
output_BaseOutputFuncTable
=
{
static
const
struct
strmbase_source_ops
source_ops
=
{
{
QTOutPin_CheckMediaType
,
QTOutPin_GetMediaType
...
...
@@ -1436,7 +1437,7 @@ static HRESULT QT_AddPin(QTSplitter *filter, const WCHAR *name,
filter
->
pAudio_Pin
=
pin
;
strmbase_source_init
(
&
pin
->
pin
,
&
QT_OutputPin_Vtbl
,
&
filter
->
filter
,
name
,
&
output_BaseOutputFuncTable
);
&
source_ops
);
pin
->
pmt
=
CoTaskMemAlloc
(
sizeof
(
AM_MEDIA_TYPE
));
CopyMediaType
(
pin
->
pmt
,
mt
);
pin
->
IQualityControl_iface
.
lpVtbl
=
&
QTOutPin_QualityControl_Vtbl
;
...
...
include/wine/strmbase.h
View file @
765cb748
...
...
@@ -60,14 +60,15 @@ struct strmbase_source
IMemInputPin
*
pMemInputPin
;
IMemAllocator
*
pAllocator
;
const
struct
BaseOutputPinFuncTable
*
pFuncsTable
;
const
struct
strmbase_source_ops
*
pFuncsTable
;
};
typedef
HRESULT
(
WINAPI
*
BaseOutputPin_AttemptConnection
)(
struct
strmbase_source
*
pin
,
IPin
*
peer
,
const
AM_MEDIA_TYPE
*
mt
);
typedef
HRESULT
(
WINAPI
*
BaseOutputPin_DecideBufferSize
)(
struct
strmbase_source
*
pin
,
IMemAllocator
*
allocator
,
ALLOCATOR_PROPERTIES
*
props
);
typedef
HRESULT
(
WINAPI
*
BaseOutputPin_DecideAllocator
)(
struct
strmbase_source
*
pin
,
IMemInputPin
*
peer
,
IMemAllocator
**
allocator
);
typedef
struct
BaseOutputPinFuncTable
{
struct
strmbase_source_ops
{
BasePinFuncTable
base
;
/* Required for Connect(). */
...
...
@@ -76,7 +77,7 @@ typedef struct BaseOutputPinFuncTable {
BaseOutputPin_DecideBufferSize
pfnDecideBufferSize
;
/* Required for BaseOutputPinImpl_AttemptConnection */
BaseOutputPin_DecideAllocator
pfnDecideAllocator
;
}
BaseOutputPinFuncTable
;
};
typedef
struct
BaseInputPin
{
...
...
@@ -135,7 +136,7 @@ HRESULT WINAPI BaseOutputPinImpl_AttemptConnection(struct strmbase_source *pin,
void
strmbase_source_cleanup
(
struct
strmbase_source
*
pin
);
void
strmbase_source_init
(
struct
strmbase_source
*
pin
,
const
IPinVtbl
*
vtbl
,
struct
strmbase_filter
*
filter
,
const
WCHAR
*
name
,
const
BaseOutputPinFuncTable
*
func_table
);
const
WCHAR
*
name
,
const
struct
strmbase_source_ops
*
func_table
);
/* Base Input Pin */
HRESULT
WINAPI
BaseInputPinImpl_QueryInterface
(
IPin
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
);
...
...
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