[MPlayer-cvslog] r22352 - trunk/loader/dshow/outputpin.c
voroshil
subversion at mplayerhq.hu
Mon Feb 26 18:21:17 CET 2007
Author: voroshil
Date: Mon Feb 26 18:21:17 2007
New Revision: 22352
Modified:
trunk/loader/dshow/outputpin.c
Log:
Fix wrong typecast, which can cause MPlayer crash
Modified: trunk/loader/dshow/outputpin.c
==============================================================================
--- trunk/loader/dshow/outputpin.c (original)
+++ trunk/loader/dshow/outputpin.c Mon Feb 26 18:21:17 2007
@@ -578,7 +578,7 @@ static HRESULT STDCALL COutputPin_NewSeg
*/
static HRESULT STDCALL COutputMemPin_QueryInterface(IUnknown* This, const GUID* iid, void** ppv)
{
- COutputPin* p = (COutputPin*)This;
+ COutputMemPin* p = (COutputMemPin*)This;
Debug printf("COutputMemPin_QueryInterface(%p) called\n", This);
if (!ppv)
@@ -599,8 +599,8 @@ static HRESULT STDCALL COutputMemPin_Que
}*/
if(!memcmp(iid, &IID_IMemInputPin, 16))
{
- *ppv = p->mempin;
- p->mempin->vt->AddRef(This);
+ *ppv = p;
+ p->vt->AddRef(This);
return 0;
}
Debug printf("Unknown interface : %08x-%04x-%04x-%02x%02x-" \
More information about the MPlayer-cvslog
mailing list