amstream: Reference the returned IMediaStream pointer in IAMMultiMediaStream::AddMediaStream().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a16a190f63
commit
eec4a05e76
|
@ -380,7 +380,9 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream
|
|||
This->nbStreams++;
|
||||
|
||||
if (ppNewStream)
|
||||
*ppNewStream = (IMediaStream*)pStream;
|
||||
{
|
||||
IMediaStream_AddRef(*ppNewStream = (IMediaStream*)pStream);
|
||||
}
|
||||
}
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
|
|
Loading…
Reference in New Issue