summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-26 17:21:17 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-26 17:21:17 +0000
commitecd2116704e1b523e56be93b1a5e71f7610732ce (patch)
tree464f7afce37905ce18c7fc0271b74c45284b73bd /loader
parent921e985a12095397ad7a274eb3716e2b6728b22b (diff)
downloadmpv-ecd2116704e1b523e56be93b1a5e71f7610732ce.tar.bz2
mpv-ecd2116704e1b523e56be93b1a5e71f7610732ce.tar.xz
Fix wrong typecast, which can cause MPlayer crash
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22352 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r--loader/dshow/outputpin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/dshow/outputpin.c b/loader/dshow/outputpin.c
index 0f4b7ce41d..6caf658d51 100644
--- a/loader/dshow/outputpin.c
+++ b/loader/dshow/outputpin.c
@@ -578,7 +578,7 @@ static HRESULT STDCALL COutputPin_NewSegment(IPin * This,
*/
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_QueryInterface(IUnknown* This, const GUID*
}*/
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-" \