strmbase: Get rid of the unused segment fields from struct strmbase_pin.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
70d2ba7482
commit
21ac839711
|
@ -333,16 +333,10 @@ HRESULT WINAPI BasePinImpl_QueryInternalConnections(IPin * iface, IPin ** apPin,
|
||||||
return E_NOTIMPL; /* to tell caller that all input pins connected to all output pins */
|
return E_NOTIMPL; /* to tell caller that all input pins connected to all output pins */
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI BasePinImpl_NewSegment(IPin * iface, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate)
|
HRESULT WINAPI BasePinImpl_NewSegment(IPin * iface, REFERENCE_TIME start, REFERENCE_TIME stop, double rate)
|
||||||
{
|
{
|
||||||
struct strmbase_pin *This = impl_from_IPin(iface);
|
|
||||||
|
|
||||||
TRACE("iface %p, start %s, stop %s, rate %.16e.\n",
|
TRACE("iface %p, start %s, stop %s, rate %.16e.\n",
|
||||||
iface, debugstr_time(tStart), debugstr_time(tStop), dRate);
|
iface, debugstr_time(start), debugstr_time(stop), rate);
|
||||||
|
|
||||||
This->tStart = tStart;
|
|
||||||
This->tStop = tStop;
|
|
||||||
This->dRate = dRate;
|
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -696,7 +690,6 @@ void strmbase_source_init(struct strmbase_source *pin, const IPinVtbl *vtbl, str
|
||||||
{
|
{
|
||||||
memset(pin, 0, sizeof(*pin));
|
memset(pin, 0, sizeof(*pin));
|
||||||
pin->pin.IPin_iface.lpVtbl = vtbl;
|
pin->pin.IPin_iface.lpVtbl = vtbl;
|
||||||
pin->pin.dRate = 1.0;
|
|
||||||
pin->pin.filter = filter;
|
pin->pin.filter = filter;
|
||||||
pin->pin.dir = PINDIR_OUTPUT;
|
pin->pin.dir = PINDIR_OUTPUT;
|
||||||
lstrcpyW(pin->pin.name, name);
|
lstrcpyW(pin->pin.name, name);
|
||||||
|
@ -843,17 +836,16 @@ static HRESULT deliver_newsegment(IPin *pin, LPVOID data)
|
||||||
return IPin_NewSegment(pin, args->tStart, args->tStop, args->rate);
|
return IPin_NewSegment(pin, args->tStart, args->tStop, args->rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI BaseInputPinImpl_NewSegment(IPin * iface, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate)
|
HRESULT WINAPI BaseInputPinImpl_NewSegment(IPin * iface, REFERENCE_TIME start, REFERENCE_TIME stop, double rate)
|
||||||
{
|
{
|
||||||
BaseInputPin *This = impl_BaseInputPin_from_IPin(iface);
|
|
||||||
newsegmentargs args;
|
newsegmentargs args;
|
||||||
|
|
||||||
TRACE("iface %p, start %s, stop %s, rate %.16e.\n",
|
TRACE("iface %p, start %s, stop %s, rate %.16e.\n",
|
||||||
iface, debugstr_time(tStart), debugstr_time(tStop), dRate);
|
iface, debugstr_time(start), debugstr_time(stop), rate);
|
||||||
|
|
||||||
args.tStart = This->pin.tStart = tStart;
|
args.tStart = start;
|
||||||
args.tStop = This->pin.tStop = tStop;
|
args.tStop = stop;
|
||||||
args.rate = This->pin.dRate = dRate;
|
args.rate = rate;
|
||||||
|
|
||||||
return SendFurther( iface, deliver_newsegment, &args, NULL );
|
return SendFurther( iface, deliver_newsegment, &args, NULL );
|
||||||
}
|
}
|
||||||
|
@ -994,7 +986,6 @@ void strmbase_sink_init(BaseInputPin *pin, const IPinVtbl *vtbl, struct strmbase
|
||||||
{
|
{
|
||||||
memset(pin, 0, sizeof(*pin));
|
memset(pin, 0, sizeof(*pin));
|
||||||
pin->pin.IPin_iface.lpVtbl = vtbl;
|
pin->pin.IPin_iface.lpVtbl = vtbl;
|
||||||
pin->pin.dRate = 1.0;
|
|
||||||
pin->pin.filter = filter;
|
pin->pin.filter = filter;
|
||||||
pin->pin.dir = PINDIR_INPUT;
|
pin->pin.dir = PINDIR_INPUT;
|
||||||
lstrcpyW(pin->pin.name, name);
|
lstrcpyW(pin->pin.name, name);
|
||||||
|
|
|
@ -38,8 +38,6 @@ struct strmbase_pin
|
||||||
WCHAR name[128];
|
WCHAR name[128];
|
||||||
IPin *peer;
|
IPin *peer;
|
||||||
AM_MEDIA_TYPE mtCurrent;
|
AM_MEDIA_TYPE mtCurrent;
|
||||||
REFERENCE_TIME tStart, tStop;
|
|
||||||
double dRate;
|
|
||||||
|
|
||||||
const struct BasePinFuncTable* pFuncsTable;
|
const struct BasePinFuncTable* pFuncsTable;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue