• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

IWMReader GetOutputProps fails on third stream

I

icester

Flightless Bird
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

Flightless Bird
On Tue, 27 Apr 2010 12:56:06 -0500, icester wrote:

> 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...

--
Gene E. Bloch
 
Top