amstream: IAMMultiMediaStream::EnumMediaStreams
Robert Shearman
rob at codeweavers.com
Fri Mar 28 05:36:47 CDT 2008
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.
--
Rob Shearman
More information about the wine-devel
mailing list