Zebediah Figura : strmbase: Remove the no longer used BaseOutputPinImpl_GetDeliveryBuffer() helper.

Alexandre Julliard julliard at winehq.org
Mon Feb 7 15:56:03 CST 2022


Module: wine
Branch: master
Commit: 186b99c2acbcd6c172e73db6f40aa8da6e7d07dd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=186b99c2acbcd6c172e73db6f40aa8da6e7d07dd

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Sun Feb  6 20:59:43 2022 -0600

strmbase: Remove the no longer used BaseOutputPinImpl_GetDeliveryBuffer() helper.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/wine/strmbase.h |  2 --
 libs/strmbase/pin.c     | 20 --------------------
 2 files changed, 22 deletions(-)

diff --git a/include/wine/strmbase.h b/include/wine/strmbase.h
index 1c8696ed620..868ea4c580a 100644
--- a/include/wine/strmbase.h
+++ b/include/wine/strmbase.h
@@ -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);
diff --git a/libs/strmbase/pin.c b/libs/strmbase/pin.c
index 36b3fdf1425..f6e4ef1c139 100644
--- a/libs/strmbase/pin.c
+++ b/libs/strmbase/pin.c
@@ -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);




More information about the wine-cvs mailing list