Skip to content

Commit

Permalink
strmbase: Remove the no longer used BaseOutputPinImpl_GetDeliveryBuff…
Browse files Browse the repository at this point in the history
…er() helper.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
  • Loading branch information
Zebediah Figura authored and julliard committed Feb 7, 2022
1 parent ed4df69 commit 186b99c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions include/wine/strmbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ struct strmbase_sink_ops
};

/* Base Pin */
HRESULT WINAPI BaseOutputPinImpl_GetDeliveryBuffer(struct strmbase_source *pin,
IMediaSample **sample, REFERENCE_TIME *start, REFERENCE_TIME *stop, DWORD flags);
HRESULT WINAPI BaseOutputPinImpl_InitAllocator(struct strmbase_source *pin, IMemAllocator **allocator);
HRESULT WINAPI BaseOutputPinImpl_DecideAllocator(struct strmbase_source *pin, IMemInputPin *peer, IMemAllocator **allocator);
HRESULT WINAPI BaseOutputPinImpl_AttemptConnection(struct strmbase_source *pin, IPin *peer, const AM_MEDIA_TYPE *mt);
Expand Down
20 changes: 0 additions & 20 deletions libs/strmbase/pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,26 +677,6 @@ static const IPinVtbl source_vtbl =
source_NewSegment,
};

HRESULT WINAPI BaseOutputPinImpl_GetDeliveryBuffer(struct strmbase_source *This,
IMediaSample **ppSample, REFERENCE_TIME *tStart, REFERENCE_TIME *tStop, DWORD dwFlags)
{
HRESULT hr;

TRACE("(%p)->(%p, %p, %p, %x)\n", This, ppSample, tStart, tStop, dwFlags);

if (!This->pin.peer)
hr = VFW_E_NOT_CONNECTED;
else
{
hr = IMemAllocator_GetBuffer(This->pAllocator, ppSample, tStart, tStop, dwFlags);

if (SUCCEEDED(hr))
hr = IMediaSample_SetTime(*ppSample, tStart, tStop);
}

return hr;
}

HRESULT WINAPI BaseOutputPinImpl_InitAllocator(struct strmbase_source *This, IMemAllocator **pMemAlloc)
{
return CoCreateInstance(&CLSID_MemoryAllocator, NULL, CLSCTX_INPROC_SERVER, &IID_IMemAllocator, (LPVOID*)pMemAlloc);
Expand Down

0 comments on commit 186b99c

Please sign in to comment.