IWMReader GetOutputProps fails on third stream

I

icester

Hello,

I have a problem with filter that reads WMV file with more than 2 streams.

pProf->GetStreamCount(&dwNumStreams); // Get streams count
for(size_t i = 0; i < dwNumStreams; ++i) // Iterate over each stream
{

// Get IWMStreamConfig interface
CComPtr<IWMStreamConfig> pStreamConfig; CComPtr<IWMOutputMediaProps
pOutProps;
pProf->GetStream(i, &pStreamConfig);
m_pReader->GetOutputProps(i, &pOutProps);

it fails when i >= 2

Please advice,

Mathew
 
G

Gene E. Bloch

Hello,

I have a problem with filter that reads WMV file with more than 2 streams.

pProf->GetStreamCount(&dwNumStreams); // Get streams count
for(size_t i = 0; i < dwNumStreams; ++i) // Iterate over each stream
{

// Get IWMStreamConfig interface
CComPtr<IWMStreamConfig> pStreamConfig; CComPtr<IWMOutputMediaProps>
pOutProps;
pProf->GetStream(i, &pStreamConfig);
m_pReader->GetOutputProps(i, &pOutProps);

it fails when i >= 2

Please advice,

Mathew
I suggest going to a developers' newsgroup or forum for your programming
language...
 
Top