Piotr Caban : qcap: Add Avi Mux input pin IMemInputPin::NotifyAllocator.

Alexandre Julliard julliard at winehq.org
Mon Feb 24 15:42:31 CST 2014


Module: wine
Branch: master
Commit: 43bef66e8bbd93ae6d86c81aa0f1c4adc8d8127e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=43bef66e8bbd93ae6d86c81aa0f1c4adc8d8127e

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Feb 24 12:10:46 2014 +0100

qcap: Add Avi Mux input pin IMemInputPin::NotifyAllocator.

---

 dlls/qcap/avimux.c |   18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/dlls/qcap/avimux.c b/dlls/qcap/avimux.c
index 555cc44..f9c2cc2 100644
--- a/dlls/qcap/avimux.c
+++ b/dlls/qcap/avimux.c
@@ -1362,9 +1362,23 @@ static HRESULT WINAPI AviMuxIn_MemInputPin_NotifyAllocator(
 {
     AviMuxIn *avimuxin = AviMuxIn_from_IMemInputPin(iface);
     AviMux *This = impl_from_in_IPin(&avimuxin->pin.pin.IPin_iface);
-    FIXME("(%p:%s)->(%p %x)\n", This, debugstr_w(avimuxin->pin.pin.pinInfo.achName),
+    ALLOCATOR_PROPERTIES props;
+    HRESULT hr;
+
+    TRACE("(%p:%s)->(%p %x)\n", This, debugstr_w(avimuxin->pin.pin.pinInfo.achName),
             pAllocator, bReadOnly);
-    return E_NOTIMPL;
+
+    if(!pAllocator)
+        return E_POINTER;
+
+    memset(&props, 0, sizeof(props));
+    hr = IMemAllocator_GetProperties(pAllocator, &props);
+    if(FAILED(hr))
+        return hr;
+
+    props.cbAlign = 1;
+    props.cbPrefix = 8;
+    return IMemAllocator_SetProperties(avimuxin->pin.pAllocator, &props, &props);
 }
 
 static HRESULT WINAPI AviMuxIn_MemInputPin_GetAllocatorRequirements(




More information about the wine-cvs mailing list