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 pStreamConfig CComPtr

pOutProps

pProf->GetStream(i, &pStreamConfig)

m_pReader->GetOutputProps(i, &pOutProps)



it fails when i >= 2



Please advice,



Mathew
 
G

Gene E. Bloch

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 pStreamConfig CComPtr

> 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
 
Back
Top Bottom