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
dad885e2
Commit
dad885e2
authored
May 13, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of the "pfnGetPinCount" callback.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89242d8b
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1 addition
and
111 deletions
+1
-111
mediastreamfilter.c
dlls/amstream/mediastreamfilter.c
+0
-8
evr.c
dlls/evr/evr.c
+0
-7
audiorecord.c
dlls/qcap/audiorecord.c
+0
-8
avico.c
dlls/qcap/avico.c
+0
-6
avimux.c
dlls/qcap/avimux.c
+0
-8
smartteefilter.c
dlls/qcap/smartteefilter.c
+0
-5
vfwcapture.c
dlls/qcap/vfwcapture.c
+0
-6
samplegrabber.c
dlls/qedit/samplegrabber.c
+0
-6
filesource.c
dlls/quartz/filesource.c
+0
-13
parser.c
dlls/quartz/parser.c
+0
-10
filter.c
dlls/strmbase/filter.c
+1
-2
renderer.c
dlls/strmbase/renderer.c
+0
-6
transform.c
dlls/strmbase/transform.c
+0
-6
gstdemux.c
dlls/winegstreamer/gstdemux.c
+0
-8
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+0
-10
strmbase.h
include/wine/strmbase.h
+0
-2
No files found.
dlls/amstream/mediastreamfilter.c
View file @
dad885e2
...
...
@@ -321,16 +321,8 @@ static IPin* WINAPI MediaStreamFilterImpl_GetPin(BaseFilter *iface, int pos)
return
NULL
;
}
static
LONG
WINAPI
MediaStreamFilterImpl_GetPinCount
(
BaseFilter
*
iface
)
{
IMediaStreamFilterImpl
*
This
=
(
IMediaStreamFilterImpl
*
)
iface
;
return
This
->
nb_streams
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
MediaStreamFilterImpl_GetPin
,
MediaStreamFilterImpl_GetPinCount
};
HRESULT
MediaStreamFilter_create
(
IUnknown
*
pUnkOuter
,
void
**
ppObj
)
...
...
dlls/evr/evr.c
View file @
dad885e2
...
...
@@ -194,16 +194,9 @@ static IPin* WINAPI filter_GetPin(BaseFilter *iface, int position)
return
NULL
;
}
static
LONG
WINAPI
filter_GetPinCount
(
BaseFilter
*
iface
)
{
FIXME
(
"(%p): stub!
\n
"
,
iface
);
return
0
;
}
static
const
BaseFilterFuncTable
basefilter_functable
=
{
filter_GetPin
,
filter_GetPinCount
,
};
HRESULT
evr_filter_create
(
IUnknown
*
outer_unk
,
void
**
ppv
)
...
...
dlls/qcap/audiorecord.c
View file @
dad885e2
...
...
@@ -177,16 +177,8 @@ static IPin* WINAPI AudioRecord_GetPin(BaseFilter *iface, int pos)
return
NULL
;
}
static
LONG
WINAPI
AudioRecord_GetPinCount
(
BaseFilter
*
iface
)
{
AudioRecord
*
This
=
impl_from_BaseFilter
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
0
;
}
static
const
BaseFilterFuncTable
AudioRecordFuncs
=
{
AudioRecord_GetPin
,
AudioRecord_GetPinCount
};
static
HRESULT
WINAPI
PPB_QueryInterface
(
IPersistPropertyBag
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
...
...
dlls/qcap/avico.c
View file @
dad885e2
...
...
@@ -266,14 +266,8 @@ static IPin* WINAPI AVICompressor_GetPin(BaseFilter *iface, int pos)
return
ret
;
}
static
LONG
WINAPI
AVICompressor_GetPinCount
(
BaseFilter
*
iface
)
{
return
2
;
}
static
const
BaseFilterFuncTable
filter_func_table
=
{
AVICompressor_GetPin
,
AVICompressor_GetPinCount
};
static
AVICompressor
*
impl_from_IPersistPropertyBag
(
IPersistPropertyBag
*
iface
)
...
...
dlls/qcap/avimux.c
View file @
dad885e2
...
...
@@ -133,16 +133,8 @@ static IPin* WINAPI AviMux_GetPin(BaseFilter *iface, int pos)
return
NULL
;
}
static
LONG
WINAPI
AviMux_GetPinCount
(
BaseFilter
*
iface
)
{
AviMux
*
This
=
impl_from_BaseFilter
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
return
This
->
input_pin_no
+
1
;
}
static
const
BaseFilterFuncTable
filter_func_table
=
{
AviMux_GetPin
,
AviMux_GetPinCount
};
static
inline
AviMux
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
...
...
dlls/qcap/smartteefilter.c
View file @
dad885e2
...
...
@@ -224,13 +224,8 @@ static IPin* WINAPI SmartTeeFilter_GetPin(BaseFilter *iface, int pos)
return
ret
;
}
static
LONG
WINAPI
SmartTeeFilter_GetPinCount
(
BaseFilter
*
iface
)
{
return
3
;
}
static
const
BaseFilterFuncTable
SmartTeeFilterFuncs
=
{
SmartTeeFilter_GetPin
,
SmartTeeFilter_GetPinCount
};
static
ULONG
WINAPI
SmartTeeFilterInput_AddRef
(
IPin
*
iface
)
...
...
dlls/qcap/vfwcapture.c
View file @
dad885e2
...
...
@@ -203,14 +203,8 @@ static IPin* WINAPI VfwCapture_GetPin(BaseFilter *iface, int pos)
return
This
->
pOutputPin
;
}
static
LONG
WINAPI
VfwCapture_GetPinCount
(
BaseFilter
*
iface
)
{
return
1
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
VfwCapture_GetPin
,
VfwCapture_GetPinCount
};
IUnknown
*
WINAPI
QCAP_createVFWCaptureFilter
(
IUnknown
*
pUnkOuter
,
HRESULT
*
phr
)
...
...
dlls/qedit/samplegrabber.c
View file @
dad885e2
...
...
@@ -354,14 +354,8 @@ static IPin *WINAPI SampleGrabber_GetPin(BaseFilter *iface, int pos)
return
pin
;
}
static
LONG
WINAPI
SampleGrabber_GetPinCount
(
BaseFilter
*
iface
)
{
return
2
;
}
static
const
BaseFilterFuncTable
basefunc_vtbl
=
{
SampleGrabber_GetPin
,
SampleGrabber_GetPinCount
};
/* Helper that buffers data and/or calls installed sample callbacks */
...
...
dlls/quartz/filesource.c
View file @
dad885e2
...
...
@@ -405,21 +405,8 @@ static IPin* WINAPI AsyncReader_GetPin(BaseFilter *iface, int pos)
return
This
->
pOutputPin
;
}
static
LONG
WINAPI
AsyncReader_GetPinCount
(
BaseFilter
*
iface
)
{
AsyncReader
*
This
=
impl_from_BaseFilter
(
iface
);
TRACE
(
"%p->()
\n
"
,
This
);
if
(
!
This
->
pOutputPin
)
return
0
;
else
return
1
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
AsyncReader_GetPin
,
AsyncReader_GetPinCount
};
HRESULT
AsyncReader_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
...
...
dlls/quartz/parser.c
View file @
dad885e2
...
...
@@ -77,18 +77,8 @@ static IPin* WINAPI Parser_GetPin(BaseFilter *iface, int pos)
return
This
->
ppPins
[
pos
];
}
static
LONG
WINAPI
Parser_GetPinCount
(
BaseFilter
*
iface
)
{
ParserImpl
*
This
=
impl_from_BaseFilter
(
iface
);
TRACE
(
"%p->()
\n
"
,
This
);
return
This
->
cStreams
+
1
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
Parser_GetPin
,
Parser_GetPinCount
};
HRESULT
Parser_Create
(
ParserImpl
*
pParser
,
const
IBaseFilterVtbl
*
Parser_Vtbl
,
...
...
dlls/strmbase/filter.c
View file @
dad885e2
...
...
@@ -144,9 +144,8 @@ HRESULT WINAPI BaseFilterImpl_FindPin(IBaseFilter *iface, const WCHAR *id, IPin
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_w
(
id
),
ret
);
for
(
i
=
0
;
i
<
This
->
pFuncsTable
->
pfnGetPinCount
(
This
);
++
i
)
for
(
i
=
0
;
(
pin
=
This
->
pFuncsTable
->
pfnGetPin
(
This
,
i
)
);
++
i
)
{
pin
=
This
->
pFuncsTable
->
pfnGetPin
(
This
,
i
);
hr
=
IPin_QueryPinInfo
(
pin
,
&
info
);
if
(
FAILED
(
hr
))
{
...
...
dlls/strmbase/renderer.c
View file @
dad885e2
...
...
@@ -194,11 +194,6 @@ static IPin* WINAPI BaseRenderer_GetPin(BaseFilter *iface, int pos)
return
&
This
->
pInputPin
->
pin
.
IPin_iface
;
}
static
LONG
WINAPI
BaseRenderer_GetPinCount
(
BaseFilter
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
BaseRenderer_Input_CheckMediaType
(
BasePin
*
pin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
BaseRenderer
*
This
=
impl_from_IBaseFilter
(
pin
->
pinInfo
.
pFilter
);
...
...
@@ -213,7 +208,6 @@ static HRESULT WINAPI BaseRenderer_Receive(BaseInputPin *pin, IMediaSample * pSa
static
const
BaseFilterFuncTable
RendererBaseFilterFuncTable
=
{
BaseRenderer_GetPin
,
BaseRenderer_GetPinCount
};
static
const
BaseInputPinFuncTable
input_BaseInputFuncTable
=
{
...
...
dlls/strmbase/transform.c
View file @
dad885e2
...
...
@@ -139,14 +139,8 @@ static IPin *WINAPI TransformFilter_GetPin(BaseFilter *iface, int index)
return
filter
->
ppPins
[
index
];
}
static
LONG
WINAPI
TransformFilter_GetPinCount
(
BaseFilter
*
iface
)
{
return
2
;
}
static
const
BaseFilterFuncTable
tfBaseFuncTable
=
{
TransformFilter_GetPin
,
TransformFilter_GetPinCount
};
static
const
BaseInputPinFuncTable
tf_input_BaseInputFuncTable
=
{
...
...
dlls/winegstreamer/gstdemux.c
View file @
dad885e2
...
...
@@ -1210,16 +1210,8 @@ static IPin* WINAPI GST_GetPin(BaseFilter *iface, int pos)
return
pin
;
}
static
LONG
WINAPI
GST_GetPinCount
(
BaseFilter
*
iface
)
{
GSTImpl
*
This
=
(
GSTImpl
*
)
iface
;
TRACE
(
"%p -> %u
\n
"
,
This
,
This
->
cStreams
+
1
);
return
(
This
->
cStreams
+
1
);
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
GST_GetPin
,
GST_GetPinCount
};
IUnknown
*
CALLBACK
Gstreamer_Splitter_create
(
IUnknown
*
pUnkOuter
,
HRESULT
*
phr
)
...
...
dlls/wineqtdecoder/qtsplitter.c
View file @
dad885e2
...
...
@@ -233,18 +233,8 @@ static IPin * WINAPI QT_GetPin(BaseFilter *base, int index)
return
NULL
;
}
static
LONG
WINAPI
QT_GetPinCount
(
BaseFilter
*
iface
)
{
QTSplitter
*
This
=
impl_from_BaseFilter
(
iface
);
int
c
=
1
;
if
(
This
->
pAudio_Pin
)
c
++
;
if
(
This
->
pVideo_Pin
)
c
++
;
return
c
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
QT_GetPin
,
QT_GetPinCount
};
IUnknown
*
CALLBACK
QTSplitter_create
(
IUnknown
*
punkout
,
HRESULT
*
phr
)
...
...
include/wine/strmbase.h
View file @
dad885e2
...
...
@@ -169,12 +169,10 @@ typedef struct BaseFilter
}
BaseFilter
;
typedef
IPin
*
(
WINAPI
*
BaseFilter_GetPin
)(
BaseFilter
*
iface
,
int
iPosition
);
typedef
LONG
(
WINAPI
*
BaseFilter_GetPinCount
)(
BaseFilter
*
iface
);
typedef
struct
BaseFilterFuncTable
{
/* Required */
BaseFilter_GetPin
pfnGetPin
;
BaseFilter_GetPinCount
pfnGetPinCount
;
}
BaseFilterFuncTable
;
HRESULT
WINAPI
BaseFilterImpl_QueryInterface
(
IBaseFilter
*
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