LEADTOOLS Media Foundation Help > Programming with LEADTOOLS Media Foundation > C++ Code > IltmfPlay::get_SourceStream Example for C++ |
void SetSourceStream(IStream *pSourceStream, IltmfPlay *pPlay)
{
HRESULT hr = pPlay->put_SourceStream(pSourceStream);
if (FAILED(hr))
return;
#ifdef _DEBUG
IStream *pStream = NULL;
// try to get the play source stream object
hr = pPlay->get_SourceStream((IUnknown**)&pStream);
assert(pStream);
#endif
}