Nikolay Sivov wrote:
@@ -144,9 +144,18 @@ { IAMMultiMediaStreamImpl *This = (IAMMultiMediaStreamImpl *)iface;
- FIXME("(%p/%p)->(%ld,%p) stub!\n", This, iface, Index, ppMediaStream);
- TRACE("(%p/%p)->(%d,%p)\n", This, iface, Index, ppMediaStream);
- return E_NOTIMPL;
- /* check out of range */
- if(Index < 0 || Index >= This->nbStreams)
return S_FALSE;
- /* NULL pointer */
- if(!(*ppMediaStream))
return E_POINTER;
- *ppMediaStream = This->pStreams[Index];
- return S_OK;
}
You need to call IMediaStream_AddRef on the returned stream.